Add support for unless

ifs without a true branch would crash before
Somewhat more verbose but unified
This commit is contained in:
2019-08-14 22:24:35 +03:00
parent d6c38d15ba
commit 31ae0a9670
7 changed files with 101 additions and 25 deletions

View File

@ -24,7 +24,6 @@ module Risc
produced = produce_body
check = produced.next(4)
assert_equal IsZero , check.class
assert check.label.name.start_with?("merge_label") , check.label.name
end
def test_false_label
produced = produce_body