aa79e41d1c
seems to fit the layer much better as we really have a very reduced instruction set
19 lines
406 B
Ruby
19 lines
406 B
Ruby
require_relative "../helper"
|
|
|
|
module Risc
|
|
class TestMachine < MiniTest::Test
|
|
|
|
def setup
|
|
@machine = Risc.machine.boot
|
|
end
|
|
|
|
def test_collect_all_types
|
|
objects = Risc::Collector.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
|