2014-02-02 06:24:07 +00:00
|
|
|
print("" == "")
|
|
|
|
print("" > "")
|
|
|
|
print("" < "")
|
|
|
|
print("" == "1")
|
|
|
|
print("1" == "")
|
|
|
|
print("" > "1")
|
|
|
|
print("1" > "")
|
|
|
|
print("" < "1")
|
|
|
|
print("1" < "")
|
|
|
|
print("" >= "1")
|
|
|
|
print("1" >= "")
|
|
|
|
print("" <= "1")
|
|
|
|
print("1" <= "")
|
|
|
|
|
|
|
|
print("1" == "1")
|
|
|
|
print("1" != "1")
|
|
|
|
print("1" == "2")
|
|
|
|
print("1" == "10")
|
|
|
|
|
|
|
|
print("1" > "1")
|
|
|
|
print("1" > "2")
|
|
|
|
print("2" > "1")
|
|
|
|
print("10" > "1")
|
|
|
|
print("1/" > "1")
|
|
|
|
print("1" > "10")
|
|
|
|
print("1" > "1/")
|
|
|
|
|
|
|
|
print("1" < "1")
|
|
|
|
print("2" < "1")
|
|
|
|
print("1" < "2")
|
|
|
|
print("1" < "10")
|
|
|
|
print("1" < "1/")
|
|
|
|
print("10" < "1")
|
|
|
|
print("1/" < "1")
|
|
|
|
|
|
|
|
print("1" >= "1")
|
|
|
|
print("1" >= "2")
|
|
|
|
print("2" >= "1")
|
|
|
|
print("10" >= "1")
|
|
|
|
print("1/" >= "1")
|
|
|
|
print("1" >= "10")
|
|
|
|
print("1" >= "1/")
|
|
|
|
|
|
|
|
print("1" <= "1")
|
|
|
|
print("2" <= "1")
|
|
|
|
print("1" <= "2")
|
|
|
|
print("1" <= "10")
|
|
|
|
print("1" <= "1/")
|
|
|
|
print("10" <= "1")
|
|
|
|
print("1/" <= "1")
|
2015-09-03 23:06:18 +01:00
|
|
|
|
|
|
|
# this tests an internal string that doesn't have a hash with a string
|
|
|
|
# that does have a hash, but the lengths of the two strings are different
|
2020-06-18 10:19:14 +01:00
|
|
|
try:
|
|
|
|
import usys as sys
|
|
|
|
except ImportError:
|
|
|
|
import sys
|
2015-09-03 23:06:18 +01:00
|
|
|
print(sys.version == 'a long string that has a hash')
|
2018-04-04 16:04:38 +01:00
|
|
|
|
|
|
|
# this special string would have a hash of 0 but is incremented to 1
|
|
|
|
print('Q+?' == 'Q' + '+?')
|