return works

This commit is contained in:
Torsten Ruger
2018-03-16 19:26:27 +05:30
parent 259b248588
commit d01bdf5dc5
4 changed files with 37 additions and 29 deletions

View File

@ -9,9 +9,8 @@ module Vool
"if(10 < 12) ; a = true ; end"
end
def test_if_basic_hoist
lst = compile_main( basic_if )
assert_equal Statements , lst.class
assert_equal IfStatement , lst.statements[1].class
lst = RubyCompiler.compile( basic_if )
assert_equal IfStatement , lst.class
end
def pest_if_basic_cond
lst = RubyCompiler.compile( basic_if )