use more instances in parfait

and misc
This commit is contained in:
2019-09-10 12:33:57 +03:00
parent c3c2ab606c
commit 63323376e4
10 changed files with 54 additions and 46 deletions

View File

@ -12,7 +12,7 @@ module Risc
def test_simple_collect
objects = Collector.collect_space(@linker)
assert_equal 1564 , objects.length , objects.length.to_s
assert_equal 564 , objects.length , objects.length.to_s
end
def test_collect_all_types
@ -38,8 +38,10 @@ module Risc
def test_integer_positions
objects = Collector.collect_space(@linker)
int = Parfait.object_space.get_next_for(:Integer)
count = 0
while(int)
assert Position.set?(int) , "INt #{int.object_id}"
count += 1
assert Position.set?(int) , "INT #{int.object_id.to_s(16)} , count #{count}"
int = int.next_integer
end
end
@ -57,7 +59,7 @@ module Risc
def test_simple_collect
objects = Collector.collect_space(@linker)
assert_equal 1564, objects.length , objects.length.to_s
assert_equal 564, objects.length , objects.length.to_s
end
def test_integer_positions
@ -66,7 +68,7 @@ module Risc
count = 0
while(int)
count += 1
assert Position.set?(int) , "INT #{int.object_id} , count #{count}"
assert Position.set?(int) , "INT #{int.object_id.to_s(16)} , count #{count}"
int = int.next_integer
end
end