Commit 51413c8c authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests: Add test for implicit float to int conversion (not allowed!)

parent e09320ad
......@@ -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")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment