mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Add check to assert issue #92 is fixed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user