Rename Block to RubyBlock at Ruby level
The parser presents the whole call that defines the block as a block. And so does the Ruby layer, as we don't want to do processing in ast. Just making it clearer, also Vool:: block will have to be renamed
This commit is contained in:
@ -9,7 +9,7 @@ module Ruby
|
||||
@lst = compile( input )
|
||||
end
|
||||
def test_block
|
||||
assert_equal BlockStatement , @lst.class
|
||||
assert_equal RubyBlockStatement , @lst.class
|
||||
end
|
||||
def test_send
|
||||
assert_equal SendStatement , @lst.send.class
|
@ -15,7 +15,7 @@ module Ruby
|
||||
assert_equal LocalAssignment , @lst.first.class
|
||||
end
|
||||
def test_assign_right
|
||||
assert_equal BlockStatement , @lst.first.value.class
|
||||
assert_equal RubyBlockStatement , @lst.first.value.class
|
||||
end
|
||||
def test_method_name
|
||||
assert_equal :plus_one , @lst.first.value.send.name
|
@ -2,7 +2,7 @@ require_relative "helper"
|
||||
|
||||
module RubyX
|
||||
|
||||
class TestObjecCompile < MiniTest::Test
|
||||
class TestObjectCompile < MiniTest::Test
|
||||
include ParfaitHelper
|
||||
def source
|
||||
load_parfait(:object)
|
||||
|
Reference in New Issue
Block a user