зеркало из https://github.com/github/ruby.git
* test/ruby/test_module.rb: suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
16969412b3
Коммит
f5654b4dfc
|
@ -55,7 +55,7 @@ class TestModule < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_CMP_0
|
||||
assert_equal -1, (String <=> Object)
|
||||
assert_equal(-1, (String <=> Object))
|
||||
assert_equal 1, (Object <=> String)
|
||||
assert_nil(Array <=> String)
|
||||
end
|
||||
|
@ -528,10 +528,10 @@ class TestModule < Test::Unit::TestCase
|
|||
class << o; self; end.instance_eval { undef_method(:foo) }
|
||||
end
|
||||
|
||||
%w(object_id __send__ initialize).each do |m|
|
||||
assert_in_out_err([], <<-INPUT, [], /warning: undefining `#{m}' may cause serious problems$/)
|
||||
%w(object_id __send__ initialize).each do |n|
|
||||
assert_in_out_err([], <<-INPUT, [], /warning: undefining `#{n}' may cause serious problems$/)
|
||||
$VERBOSE = false
|
||||
Class.new.instance_eval { undef_method(:#{m}) }
|
||||
Class.new.instance_eval { undef_method(:#{n}) }
|
||||
INPUT
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче