rename method to typed_method
This commit is contained in:
@ -9,7 +9,7 @@ class TestClass < MiniTest::Test
|
||||
|
||||
def foo_method for_class = :Try
|
||||
args = Parfait.new_list [ Parfait::Variable.new(:Integer , :bar )]
|
||||
::Parfait::Method.new @space.get_class_by_name(for_class) , :foo , args
|
||||
::Parfait::TypedMethod.new @space.get_class_by_name(for_class) , :foo , args
|
||||
end
|
||||
|
||||
def test_type_forclass
|
||||
@ -47,7 +47,7 @@ class TestClass < MiniTest::Test
|
||||
end
|
||||
def test_method_get
|
||||
test_add_method
|
||||
assert_equal Parfait::Method , @try.get_instance_method(:foo).class
|
||||
assert_equal Parfait::TypedMethod , @try.get_instance_method(:foo).class
|
||||
end
|
||||
def test_method_get_nothere
|
||||
assert_nil @try.get_instance_method(:foo)
|
||||
|
@ -9,7 +9,7 @@ class TestMeta < MiniTest::Test
|
||||
|
||||
def foo_method for_class = :Try
|
||||
args = Parfait.new_list [ Parfait::Variable.new(:Integer , :bar )]
|
||||
::Parfait::Method.new @space.get_class_by_name(for_class) , :foo , args
|
||||
::Parfait::TypedMethod.new @space.get_class_by_name(for_class) , :foo , args
|
||||
end
|
||||
|
||||
def test_meta
|
||||
@ -44,7 +44,7 @@ class TestMeta < MiniTest::Test
|
||||
end
|
||||
def test_method_get
|
||||
test_add_method
|
||||
assert_equal Parfait::Method , @try.get_instance_method(:foo).class
|
||||
assert_equal Parfait::TypedMethod , @try.get_instance_method(:foo).class
|
||||
end
|
||||
def test_method_get_nothere
|
||||
assert_nil @try.get_instance_method(:foo)
|
||||
|
@ -5,7 +5,7 @@ class TestMethod < MiniTest::Test
|
||||
def setup
|
||||
obj = Register.machine.space.get_class_by_name(:Object)
|
||||
args = Parfait.new_list [ Parfait::Variable.new(:Integer , :bar )]
|
||||
@method = ::Parfait::Method.new obj , :foo , args
|
||||
@method = ::Parfait::TypedMethod.new obj , :foo , args
|
||||
end
|
||||
|
||||
def test_method_name
|
||||
|
@ -6,7 +6,7 @@ class TestSpace < MiniTest::Test
|
||||
@machine = Register.machine.boot
|
||||
end
|
||||
def classes
|
||||
[:Kernel,:Word,:List,:Message,:Frame,:Type,:Object,:Class,:Dictionary,:Method , :Integer]
|
||||
[:Kernel,:Word,:List,:Message,:Frame,:Type,:Object,:Class,:Dictionary,:TypedMethod , :Integer]
|
||||
end
|
||||
def test_booted
|
||||
assert_equal true , @machine.booted
|
||||
|
Reference in New Issue
Block a user