simple collector test
This commit is contained in:
parent
86dafccb04
commit
b7147b3dd4
@ -1,5 +1,6 @@
|
||||
require_relative "interpreter/test_all"
|
||||
|
||||
require_relative "test_collector"
|
||||
require_relative "test_compat"
|
||||
require_relative "test_instructions"
|
||||
require_relative "test_machine"
|
||||
|
17
test/register/test_collector.rb
Normal file
17
test/register/test_collector.rb
Normal file
@ -0,0 +1,17 @@
|
||||
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
|
Loading…
Reference in New Issue
Block a user