mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 04:00:28 +01:00
tests: Add tests to improve coverage of runtime.c.
This commit is contained in:
@@ -87,6 +87,12 @@ try:
|
||||
except TypeError:
|
||||
print("TypeError")
|
||||
|
||||
# small int on LHS, float on RHS, unsupported op
|
||||
try:
|
||||
print(1 | 1.0)
|
||||
except TypeError:
|
||||
print('TypeError')
|
||||
|
||||
# can't convert list to float
|
||||
try:
|
||||
float([])
|
||||
|
||||
Reference in New Issue
Block a user