ruby-changes:30016
From: akr <ko1@a...>
Date: Fri, 19 Jul 2013 19:29:56 +0900 (JST)
Subject: [ruby-changes:30016] akr:r42068 (trunk): Suppress warnings.
akr 2013-07-19 19:29:46 +0900 (Fri, 19 Jul 2013) New Revision: 42068 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42068 Log: Suppress warnings. Modified files: trunk/test/ruby/test_array.rb Index: test/ruby/test_array.rb =================================================================== --- test/ruby/test_array.rb (revision 42067) +++ test/ruby/test_array.rb (revision 42068) @@ -577,7 +577,7 @@ class TestArray < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_array.rb#L577 assert_in_out_err [], <<-EOS, ["0"], [], bug8654 a1 = [] a2 = Array.new(100) { |i| i } - r = a2.count do |i| + a2.count do |i| p i a2.replace(a1) if i == 0 end @@ -586,6 +586,7 @@ class TestArray < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_array.rb#L586 assert_in_out_err [], <<-EOS, ["[]", "0"], [], bug8654 ARY = Array.new(100) { |i| i } class Fixnum + alias old_equal == def == other ARY.replace([]) if self.equal?(0) p ARY -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/