mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
tests: Add test for implicit float to int conversion (not allowed!)
This commit is contained in:
@@ -20,3 +20,8 @@ print(x)
|
||||
print(x[1:])
|
||||
print(x[:-1])
|
||||
print(x[2:3])
|
||||
|
||||
try:
|
||||
print(x[1.0])
|
||||
except TypeError:
|
||||
print("TypeError")
|
||||
|
||||
Reference in New Issue
Block a user