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