summaryrefslogtreecommitdiff
path: root/test/ripper/test_parser_events.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-05 06:23:13 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-05 06:23:13 +0000
commitd4e2cb1564030010e54d367223cc261894a4414f (patch)
tree652bfc91b2392d7a009fe4b8ad015daddc9defa5 /test/ripper/test_parser_events.rb
parent5809d668bc6b8e43e117925d10a41e9e62d1c629 (diff)
Suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ripper/test_parser_events.rb')
-rw-r--r--test/ripper/test_parser_events.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb
index 278b47623a..3c2b000426 100644
--- a/test/ripper/test_parser_events.rb
+++ b/test/ripper/test_parser_events.rb
@@ -813,8 +813,8 @@ class TestRipper::ParserEvents < Test::Unit::TestCase
thru_rescue = false
parsed = parse('begin; 1; rescue => e; 2; end', :on_rescue) {thru_rescue = true}
assert_equal true, thru_rescue
- assert_match /1.*rescue/, parsed
- assert_match /rescue\(,var_field\(e\),\[2\]\)/, parsed
+ assert_match(/1.*rescue/, parsed)
+ assert_match(/rescue\(,var_field\(e\),\[2\]\)/, parsed)
end
def test_rescue_mod
@@ -1146,7 +1146,6 @@ class TestRipper::ParserEvents < Test::Unit::TestCase
def test_local_variables
cmd = 'command(w,[regexp_literal(regexp_add(regexp_new(),25 # ),/)])'
div = 'binary(ref(w),/,25)'
- var = '[w]'
bug1939 = '[ruby-core:24923]'
assert_equal("[#{cmd}]", parse('w /25 # /'), bug1939)