You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ravi/tests/comptests/inputs/22_cmp.lua

16 lines
273 B

a = 5
b = 66
f = compiler.load('return a < b')
assert(f and type(f) == 'function')
assert(f() == true)
a = 9.66
b = 4.2
assert(f() == false)
a = 'a'
b = 'apple'
assert(f() == true)
f = compiler.load('return b >= a')
assert(f and type(f) == 'function')
assert(f() == true)