push the name down into callable

blocks need a name too
if just for debug, and stacks
This commit is contained in:
Torsten Ruger
2018-07-30 10:21:43 +03:00
parent 1cb07a4164
commit 4055709529
8 changed files with 25 additions and 18 deletions

View File

@ -96,7 +96,7 @@ module Parfait
assert_equal @method , @method
end
def test_not_equal
method = Parfait::CallableMethod.new( @obj , :other , @args , @frame)
method = Parfait::CallableMethod.new( :other , @obj , @args , @frame)
assert @method != method
end
def test_create_block
@ -106,5 +106,8 @@ module Parfait
def test_has_block
assert_equal 7 , @method.get_type.variable_index( :blocks )
end
def test_has_name
assert_equal 6 , @method.get_type.variable_index( :name )
end
end
end