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:
2019-09-23 00:07:30 +03:00
parent e61c5d4a55
commit 7b40bb9106
16 changed files with 70 additions and 73 deletions

View File

@ -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

View File

@ -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