diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-20 03:00:49 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-20 03:00:49 +0000 |
commit | 91557d0c52de3287a319e241215803989159adcc (patch) | |
tree | dc79a03dbde84575cc6f723104236018fb9302ce | |
parent | 79accaf8d4dda146004eaa9a3477b31448913537 (diff) | |
download | ruby-91557d0c52de3287a319e241215803989159adcc.tar.gz |
check the index rather than include
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_gc_compact.rb | 2 |
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 |