summaryrefslogtreecommitdiff
path: root/test/ruby/test_literal.rb
diff options
context:
space:
mode:
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 e251197..80c8af9 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)