add types hash to space

This commit is contained in:
Torsten Ruger
2016-12-07 23:34:45 +02:00
parent fe195df10e
commit 266a04040b
4 changed files with 21 additions and 8 deletions

View File

@ -29,6 +29,10 @@ class TestSpace < MiniTest::Test
end
end
def test_types
assert @machine.space.types.is_a? Parfait::Dictionary
end
def test_classes_type
classes.each do |name|
assert_equal Parfait::Type , @machine.space.classes[name].get_type.class