Suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a6e1e3d637
commit
33fc365f82
@ -577,7 +577,7 @@ class TestArray < Test::Unit::TestCase
|
||||
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
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user