fix comparison operator

< implemented <=
This commit is contained in:
Torsten Ruger
2018-04-23 19:39:16 +03:00
parent ef5854c4df
commit 7a2160e9b4
5 changed files with 117 additions and 32 deletions

View File

@ -45,6 +45,10 @@ module Risc
run_input "6 < 5"
assert_equal Parfait::FalseClass , get_return.class
end
def test_smaller_false_same
run_input "5 < 5"
assert_equal Parfait::FalseClass , get_return.class
end
def test_larger_true
run_input "5 > 4"
assert_equal Parfait::TrueClass , get_return.class
@ -53,6 +57,10 @@ module Risc
run_input "5 > 6"
assert_equal Parfait::FalseClass , get_return.class
end
def test_larger_false_same
run_input "5 > 5"
assert_equal Parfait::FalseClass , get_return.class
end
end
end
end