Fixing new parfait boot process
mostly about setting the types to existing objects. Then after space is in place, it is set automatically also a fair bit of misc in the commit
This commit is contained in:
@ -15,6 +15,9 @@ module Parfait
|
||||
def test_new_superclass_name
|
||||
assert_equal :Object , @try.super_class_name
|
||||
end
|
||||
def test_existing_superclass_name
|
||||
assert_equal :Object , @space.classes[:Type].super_class_name
|
||||
end
|
||||
def test_new_superclass
|
||||
assert_equal "Class(Object)" , @try.super_class!.inspect
|
||||
assert_equal "Class(Object)" , @try.super_class.inspect
|
||||
|
@ -23,8 +23,15 @@ module Parfait
|
||||
end
|
||||
|
||||
def test_type_methods
|
||||
assert @mess.get_type#.get_type.variable_index(:methods)
|
||||
assert_equal 4 , @mess.get_type.get_type.variable_index(:methods)
|
||||
end
|
||||
|
||||
def test_mess_class
|
||||
mess = @space.get_class_by_name(:Message)
|
||||
assert_equal :Message , mess.name
|
||||
mess_type = @space.get_type_by_class_name(:Message)
|
||||
assert mess_type.get_type , "No type, but no raise either"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user