aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_basicinstructions.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_basicinstructions.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_basicinstructions.rb')
-rw-r--r--test/ruby/test_basicinstructions.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_basicinstructions.rb b/test/ruby/test_basicinstructions.rb
index 36a3b2b51d..ff14e4a7a6 100644
--- a/test/ruby/test_basicinstructions.rb
+++ b/test/ruby/test_basicinstructions.rb
@@ -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")