aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_literal.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-25 23:12:50 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-25 23:12:50 +0000
commit37679ee584e409088a2f083594e3c4ccba486e13 (patch)
treeea8390a11414859640d50b21293a2190d99f73ce /test/ruby/test_literal.rb
parenta967f738c83b960f23f5b04403a17ca37f049e25 (diff)
downloadruby-37679ee584e409088a2f083594e3c4ccba486e13.tar.gz
supress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_literal.rb')
-rw-r--r--test/ruby/test_literal.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/ruby/test_literal.rb b/test/ruby/test_literal.rb
index e251197c79..80c8af9312 100644
--- a/test/ruby/test_literal.rb
+++ b/test/ruby/test_literal.rb
@@ -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)