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
|
@ -77,16 +77,16 @@ class TestRubyLiteral < Test::Unit::TestCase
|
|||
|
||||
def test_regexp
|
||||
assert_instance_of Regexp, //
|
||||
assert_match //, 'a'
|
||||
assert_match //, ''
|
||||
assert_match(//, 'a')
|
||||
assert_match(//, '')
|
||||
assert_instance_of Regexp, /a/
|
||||
assert_match /a/, 'a'
|
||||
assert_no_match /test/, 'tes'
|
||||
assert_match(/a/, 'a')
|
||||
assert_no_match(/test/, 'tes')
|
||||
re = /test/
|
||||
assert_match re, 'test'
|
||||
str = 'test'
|
||||
assert_match re, str
|
||||
assert_match /test/, str
|
||||
assert_match(/test/, str)
|
||||
assert_equal 0, (/test/ =~ 'test')
|
||||
assert_equal 0, (re =~ 'test')
|
||||
assert_equal 0, (/test/ =~ str)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue