rubyx/test/register/test_machine.rb
Torsten Ruger 113b349af5 unlinking the objects collection from the machine
passing it around instead
2016-12-31 18:46:17 +02:00

19 lines
407 B
Ruby

require_relative "../helper"
module Register
class TestMachine < MiniTest::Test
def setup
@machine = Register.machine.boot
end
def test_collect_all_types
objects = @machine.collect_space
objects.each do |id, objekt|
next unless objekt.is_a?( Parfait::Type )
assert Parfait.object_space.get_type_for( objekt.hash ) , objekt.hash
end
end
end
end