mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
test_regexp.rb, test_string.rb: suppress warnings
* test/ruby/test_regexp.rb (test_eq_tilde_can_be_overridden): suppress a warning. * test/ruby/test_string.rb (test_eq_tilde_can_be_overridden): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e1bb07105f
commit
2374241752
2 changed files with 2 additions and 0 deletions
|
@ -1014,6 +1014,7 @@ class TestRegexp < Test::Unit::TestCase
|
|||
def test_eq_tilde_can_be_overridden
|
||||
assert_in_out_err([], <<-RUBY, ["foo"], [])
|
||||
class Regexp
|
||||
undef =~
|
||||
def =~(str)
|
||||
"foo"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue