Add >, >=, <, <=

This commit is contained in:
2025-12-22 13:49:44 +11:00
parent d2f295f46a
commit 525b2bc733
4 changed files with 260 additions and 24 deletions

55
tests/compare.sols Normal file
View File

@@ -0,0 +1,55 @@
if 1 == 1 {
puts "working"
}
if 1 == 2 {
puts "not working"
}
if 1 != 2 {
puts "working"
}
if 1 != 1 {
puts "not working"
}
if 2 > 1 {
puts "working"
}
if 1 > 2 {
puts "not working"
}
if 1 < 2 {
puts "working"
}
if 2 < 1 {
puts "not working"
}
if 2 >= 2 {
puts "working"
}
if 2 >= 1 {
puts "working"
}
if 2 >= 3 {
puts "not working"
}
if 2 <= 2 {
puts "working"
}
if 2 <= 3 {
puts "working"
}
if 3 <= 2 {
puts "not working"
}