539681fffd
From now on, all new tests must use underscore. Addresses issue #727.
15 lines
221 B
Python
15 lines
221 B
Python
print(1 is 1)
|
|
print(1 is 2)
|
|
print(1 is not 1)
|
|
print(1 is not 2)
|
|
|
|
|
|
print([1, 2] is [1, 2])
|
|
a = [1, 2]
|
|
b = a
|
|
print(b is a)
|
|
|
|
# TODO: strings require special "is" handling, postponed
|
|
# until qstr refactor.
|
|
#print("a" is "a")
|