check the index rather than include
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
79accaf8d4
commit
91557d0c52
@ -33,7 +33,7 @@ class TestGCCompact < Test::Unit::TestCase
|
||||
|
||||
100_000.times do
|
||||
new_object = Object.new
|
||||
if addresses.include? memory_location(new_object)
|
||||
if addresses.index memory_location(new_object)
|
||||
break
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user