small rename
This commit is contained in:
@ -8,7 +8,7 @@ class TestMeta < MiniTest::Test
|
||||
end
|
||||
|
||||
def foo_method for_class = :Try
|
||||
args = Parfait::Type.new_for_hash( @try , { bar: :Integer})
|
||||
args = Parfait::Type.for_hash( @try , { bar: :Integer})
|
||||
::Parfait::TypedMethod.new @space.get_class_by_name(for_class).instance_type , :foo , args
|
||||
end
|
||||
|
||||
|
@ -4,7 +4,7 @@ class TestMethod < MiniTest::Test
|
||||
|
||||
def setup
|
||||
obj = Register.machine.space.get_class_by_name(:Object).instance_type
|
||||
args = Parfait::Type.new_for_hash( obj , { bar: :Integer , foo: :Type})
|
||||
args = Parfait::Type.for_hash( obj , { bar: :Integer , foo: :Type})
|
||||
@method = ::Parfait::TypedMethod.new obj , :meth , args
|
||||
@method.add_local :local_bar , :Integer
|
||||
@method.add_local :local_foo , :Type
|
||||
|
@ -8,7 +8,7 @@ class TestMethodApi < MiniTest::Test
|
||||
end
|
||||
|
||||
def foo_method for_class = :Try
|
||||
args = Parfait::Type.new_for_hash( @try , { bar: :Integer})
|
||||
args = Parfait::Type.for_hash( @try , { bar: :Integer})
|
||||
::Parfait::TypedMethod.new @space.get_class_by_name(for_class).instance_type , :foo , args
|
||||
end
|
||||
|
||||
@ -33,7 +33,7 @@ class TestMethodApi < MiniTest::Test
|
||||
end
|
||||
end
|
||||
def test_create_method
|
||||
args = Parfait::Type.new_for_hash( @try , { bar: :Integer})
|
||||
args = Parfait::Type.for_hash( @try , { bar: :Integer})
|
||||
@try.create_instance_method :bar, args
|
||||
assert_equal ":bar" , @try.method_names.inspect
|
||||
end
|
||||
|
Reference in New Issue
Block a user