Fix a bug in how comparison instructions are handled: the 'a' intruction field
was ignored. Includes new test case.
This commit is contained in:
12
src/test/res/compare.lua
Normal file
12
src/test/res/compare.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
if 2 < 5 then
|
||||
print("OK!")
|
||||
else
|
||||
print("Something is not right")
|
||||
end
|
||||
|
||||
print(2 < 5)
|
||||
print(2 <= 5)
|
||||
print(2 == 5)
|
||||
print(2 ~= 5)
|
||||
print(2 > 5)
|
||||
print(2 >= 5)
|
||||
Reference in New Issue
Block a user