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

@ -19,6 +19,11 @@ module Parfait
def test_block_in_method
assert @method.has_block( @method.create_block(@args , @frame ))
end
def test_block_hash_name
assert_equal :meth_block , @method.create_block( @args , @frame ).name
end
def test_type_name
assert_equal 6 , @method.create_block( @args , @frame ).get_type.variable_index(:name)
end
end
end