summaryrefslogtreecommitdiff
path: root/test/ruby/test_gc_compact.rb
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-20 03:00:49 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-20 03:00:49 +0000
commit91557d0c52de3287a319e241215803989159adcc (patch)
treedc79a03dbde84575cc6f723104236018fb9302ce /test/ruby/test_gc_compact.rb
parent79accaf8d4dda146004eaa9a3477b31448913537 (diff)
check the index rather than include
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_gc_compact.rb')
-rw-r--r--test/ruby/test_gc_compact.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_gc_compact.rb b/test/ruby/test_gc_compact.rb
index e2199e8d0d..0fc27a287a 100644
--- a/test/ruby/test_gc_compact.rb
+++ b/test/ruby/test_gc_compact.rb
@@ -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