everything but dynamic dispatch

This commit is contained in:
Torsten Ruger
2018-03-16 19:39:35 +05:30
parent d01bdf5dc5
commit ba3ec9b1a2
9 changed files with 27 additions and 82 deletions

View File

@ -12,7 +12,7 @@ module Vool
end
def test_if_basic_cond
lst = RubyCompiler.compile( basic_if )
assert_equal SendStatement , lst.condition.class
assert_equal ScopeStatement , lst.condition.class
end
def test_if_basic_branches
lst = RubyCompiler.compile( basic_if )
@ -29,7 +29,7 @@ module Vool
end
def test_if_double_cond
lst = RubyCompiler.compile( double_if )
assert_equal FalseConstant , lst.condition.class
assert_equal ScopeStatement , lst.condition.class
end
def test_if_double_branches
lst = RubyCompiler.compile( double_if )
@ -63,7 +63,7 @@ module Vool
end
def test_if_reverse_cond
lst = RubyCompiler.compile( reverse_unless )
assert_equal FalseConstant , lst.condition.class
assert_equal ScopeStatement , lst.condition.class
end
def test_if_reverse_branches
lst = RubyCompiler.compile( reverse_unless )