2016-12-31 21:05:19 +02:00
|
|
|
require_relative "../helper"
|
|
|
|
|
2017-01-19 09:02:29 +02:00
|
|
|
module Risc
|
2016-12-31 21:05:19 +02:00
|
|
|
class TestCollector < MiniTest::Test
|
|
|
|
def test_simple_collect
|
|
|
|
Machine.new.boot
|
2017-01-19 09:02:29 +02:00
|
|
|
objects = Risc::Collector.collect_space
|
2017-01-14 19:52:16 +02:00
|
|
|
assert ((350 < objects.length) or (430 > objects.length)) , objects.length.to_s
|
2016-12-31 21:05:19 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|