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:
tenderlove 2019-04-20 03:00:49 +00:00
parent 79accaf8d4
commit 91557d0c52

View File

@ -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