diff options
Diffstat (limited to 'test/ruby')
-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 |