2016-12-30 19:48:14 +01:00
|
|
|
require_relative "../helper"
|
|
|
|
|
2017-01-19 08:02:29 +01:00
|
|
|
module Risc
|
2016-12-30 19:48:14 +01:00
|
|
|
class TestMachine < MiniTest::Test
|
|
|
|
|
|
|
|
def setup
|
2017-01-19 08:02:29 +01:00
|
|
|
@machine = Risc.machine.boot
|
2016-12-30 19:48:14 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def test_collect_all_types
|
2017-01-19 08:02:29 +01:00
|
|
|
objects = Risc::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
|