mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
supress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a967f738c8
commit
37679ee584
20 changed files with 77 additions and 77 deletions
|
@ -64,7 +64,7 @@ class TestBasicInstructions < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_regexp
|
||||
assert_equal /test/, /test/
|
||||
assert_equal(/test/, /test/)
|
||||
assert_equal 'test', /test/.source
|
||||
assert_equal 'TEST', /TEST/.source
|
||||
assert_equal true, !!(/test/ =~ 'test')
|
||||
|
@ -76,9 +76,9 @@ class TestBasicInstructions < Test::Unit::TestCase
|
|||
assert_equal true, !!(re =~ 'test')
|
||||
assert_equal false, !!(re =~ 'does not match')
|
||||
|
||||
assert_equal /x#{1+1}x/, /x#{1+1}x/
|
||||
assert_equal(/x#{1+1}x/, /x#{1+1}x/)
|
||||
s = "OK"
|
||||
assert_equal /x#{s}x/, /x#{s}x/
|
||||
assert_equal(/x#{s}x/, /x#{s}x/)
|
||||
assert_equal true, !!(/x#{s}x/ =~ "xOKx")
|
||||
assert_equal false, !!(/x#{s}x/ =~ "does not match")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue