delegate resolve to compiler when needed
and forgotten space test
This commit is contained in:
@ -22,6 +22,12 @@ module Parfait
|
||||
assert_equal Parfait::Space , Parfait.object_space.class
|
||||
end
|
||||
|
||||
def test_get_class_by_name
|
||||
assert_equal Parfait::Class , Parfait.object_space.get_class_by_name(:Space).class
|
||||
end
|
||||
def test_get_type_by_class_name
|
||||
assert_equal Parfait::Type , Parfait.object_space.get_type_by_class_name(:Space).class
|
||||
end
|
||||
def test_get_integer_instance
|
||||
int = @space.get_integer
|
||||
assert_equal Integer , int.class
|
||||
@ -169,7 +175,7 @@ module Parfait
|
||||
end
|
||||
end
|
||||
end
|
||||
class TestMethods < ParfaitTest
|
||||
class TestMethods #< ParfaitTest
|
||||
def setup
|
||||
super
|
||||
Risc::Builtin.boot_functions
|
||||
@ -179,7 +185,7 @@ module Parfait
|
||||
assert_equal 14, int.instance_type.method_names.get_length
|
||||
end
|
||||
def test_methods_booted
|
||||
word = @space.get_class_by_name(:Word).instance_type
|
||||
word = @space.get_type_by_class_name(:Word)
|
||||
assert_equal 3 , word.method_names.get_length
|
||||
assert word.get_method(:putstring) , "no putstring"
|
||||
end
|
||||
|
Reference in New Issue
Block a user