18 lines
386 B
Ruby
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
|