From 91557d0c52de3287a319e241215803989159adcc Mon Sep 17 00:00:00 2001 From: tenderlove Date: Sat, 20 Apr 2019 03:00:49 +0000 Subject: check the index rather than include git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_gc_compact.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby') 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 -- cgit v1.2.3