1# test comparison operators with uint type 2 3 4@micropython.viper 5def f(x: uint, y: uint): 6 if x < y: 7 print(" <", end="") 8 if x > y: 9 print(" >", end="") 10 if x == y: 11 print(" ==", end="") 12 if x <= y: 13 print(" <=", end="") 14 if x >= y: 15 print(" >=", end="") 16 if x != y: 17 print(" !=", end="") 18 19 20def test(a, b): 21 print(a, b, end="") 22 f(a, b) 23 print() 24 25 26test(1, 1) 27test(2, 1) 28test(1, 2) 29test(2, -1) 30test(-2, 1) 31test(-2, -1) 32