forked from solstice/solstice
Add >, >=, <, <=
This commit is contained in:
55
tests/compare.sols
Normal file
55
tests/compare.sols
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user