Block/Lambda rework done
recovered from all renames and redoing the block compilation all green
This commit is contained in:
@ -13,7 +13,7 @@ module RubyX
|
||||
end
|
||||
def test_vool
|
||||
vool = compiler.ruby_to_vool source
|
||||
assert_equal Vool::ClassStatement , vool.class
|
||||
assert_equal Vool::ClassExpression , vool.class
|
||||
assert_equal :Object , vool.name
|
||||
end
|
||||
def test_mom
|
||||
|
@ -18,7 +18,7 @@ module RubyX
|
||||
def test_class_body_is_scope
|
||||
clazz = ruby_to_vool in_Test("def meth; @ivar = 5 ;end")
|
||||
assert_equal Vool::Statements , clazz.body.class
|
||||
assert_equal Vool::MethodStatement , clazz.body.first.class
|
||||
assert_equal Vool::MethodExpression , clazz.body.first.class
|
||||
end
|
||||
|
||||
def test_space_is_unchanged_by_compile
|
||||
|
@ -20,7 +20,7 @@ module RubyX
|
||||
def test_one_vool_call
|
||||
compiler = RubyXCompiler.new(RubyX.default_test_options)
|
||||
compiler.ruby_to_vool(space_source_for("main"))
|
||||
assert_equal Vool::ClassStatement , compiler.vool.class
|
||||
assert_equal Vool::ClassExpression , compiler.vool.class
|
||||
end
|
||||
def test_two_vool_calls
|
||||
compiler = RubyXCompiler.new(RubyX.default_test_options)
|
||||
|
Reference in New Issue
Block a user