Add check to assert issue #92 is fixed

This commit is contained in:
Windel Bouwman
2018-08-29 17:39:20 +02:00
parent 81cbe66085
commit af84076979

View File

@@ -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