ruby-changes:55417
From: tenderlove <ko1@a...>
Date: Sat, 20 Apr 2019 12:00:53 +0900 (JST)
Subject: [ruby-changes:55417] tenderlove:r67626 (trunk): check the index rather than include
tenderlove 2019-04-20 12:00:49 +0900 (Sat, 20 Apr 2019) New Revision: 67626 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67626 Log: check the index rather than include Modified files: trunk/test/ruby/test_gc_compact.rb Index: test/ruby/test_gc_compact.rb =================================================================== --- test/ruby/test_gc_compact.rb (revision 67625) +++ test/ruby/test_gc_compact.rb (revision 67626) @@ -33,7 +33,7 @@ class TestGCCompact < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc_compact.rb#L33 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/