2016-12-30 19:48:14 +01:00
|
|
|
require_relative "../helper"
|
|
|
|
|
|
|
|
module Register
|
|
|
|
class TestMachine < MiniTest::Test
|
|
|
|
|
|
|
|
def setup
|
|
|
|
@machine = Register.machine.boot
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_collect_all_types
|
2016-12-31 18:54:18 +01:00
|
|
|
objects = Register::Collector.collect_space
|
2016-12-31 17:46:17 +01:00
|
|
|
objects.each do |id, objekt|
|
2016-12-30 19:48:14 +01:00
|
|
|
next unless objekt.is_a?( Parfait::Type )
|
|
|
|
assert Parfait.object_space.get_type_for( objekt.hash ) , objekt.hash
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|