1print("" == "") 2print("" > "") 3print("" < "") 4print("" == "1") 5print("1" == "") 6print("" > "1") 7print("1" > "") 8print("" < "1") 9print("1" < "") 10print("" >= "1") 11print("1" >= "") 12print("" <= "1") 13print("1" <= "") 14 15print("1" == "1") 16print("1" != "1") 17print("1" == "2") 18print("1" == "10") 19 20print("1" > "1") 21print("1" > "2") 22print("2" > "1") 23print("10" > "1") 24print("1/" > "1") 25print("1" > "10") 26print("1" > "1/") 27 28print("1" < "1") 29print("2" < "1") 30print("1" < "2") 31print("1" < "10") 32print("1" < "1/") 33print("10" < "1") 34print("1/" < "1") 35 36print("1" >= "1") 37print("1" >= "2") 38print("2" >= "1") 39print("10" >= "1") 40print("1/" >= "1") 41print("1" >= "10") 42print("1" >= "1/") 43 44print("1" <= "1") 45print("2" <= "1") 46print("1" <= "2") 47print("1" <= "10") 48print("1" <= "1/") 49print("10" <= "1") 50print("1/" <= "1") 51 52# this tests an internal string that doesn't have a hash with a string 53# that does have a hash, but the lengths of the two strings are different 54try: 55 import usys as sys 56except ImportError: 57 import sys 58print(sys.version == 'a long string that has a hash') 59 60# this special string would have a hash of 0 but is incremented to 1 61print('Q+?' == 'Q' + '+?') 62