diff --git a/tests/snippets/basic_types.py b/tests/snippets/basic_types.py index 024658c91..d4bc74c44 100644 --- a/tests/snippets/basic_types.py +++ b/tests/snippets/basic_types.py @@ -4,13 +4,20 @@ print(None) # print(True) # LOAD_NAME??? print(1) # print(1L) # Long -# print(1.1) +print(1.1) # ComplexType print("abc") # print(u"abc") # Structural below -# print((1, 2)) # Tuple can be any length, but fixed after declared -# x = (1,2) -# print(x[0]) # Tuple can be any length, but fixed after declared -# print([1, 2, 3]) +print((1, 2)) # Tuple can be any length, but fixed after declared +x = (1,2) +print(x[0]) # Tuple can be any length, but fixed after declared +print([1, 2, 3]) # print({"first":1,"second":2}) + + +assert type(1 - 2) is int +assert type(2 / 3) is float +x = 1 +assert type(x) is int +assert type(x - 1) is int