rubyx/test/register/test_collector.rb
2016-12-31 21:05:19 +02:00

18 lines
386 B
Ruby

require_relative "../helper"
module Register
class TestCollector < MiniTest::Test
def test_collect_raises
Parfait.set_object_space( BootSpace.new )
assert_raises {Register::Collector.collect_space}
end
def test_simple_collect
Machine.new.boot
objects = Register::Collector.collect_space
assert_equal 352 , objects.length
end
end
end