1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Suppress warnings

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2012-09-05 06:23:13 +00:00
parent 5809d668bc
commit d4e2cb1564

View file

@ -813,8 +813,8 @@ class TestRipper::ParserEvents < Test::Unit::TestCase
thru_rescue = false thru_rescue = false
parsed = parse('begin; 1; rescue => e; 2; end', :on_rescue) {thru_rescue = true} parsed = parse('begin; 1; rescue => e; 2; end', :on_rescue) {thru_rescue = true}
assert_equal true, thru_rescue assert_equal true, thru_rescue
assert_match /1.*rescue/, parsed assert_match(/1.*rescue/, parsed)
assert_match /rescue\(,var_field\(e\),\[2\]\)/, parsed assert_match(/rescue\(,var_field\(e\),\[2\]\)/, parsed)
end end
def test_rescue_mod def test_rescue_mod
@ -1146,7 +1146,6 @@ class TestRipper::ParserEvents < Test::Unit::TestCase
def test_local_variables def test_local_variables
cmd = 'command(w,[regexp_literal(regexp_add(regexp_new(),25 # ),/)])' cmd = 'command(w,[regexp_literal(regexp_add(regexp_new(),25 # ),/)])'
div = 'binary(ref(w),/,25)' div = 'binary(ref(w),/,25)'
var = '[w]'
bug1939 = '[ruby-core:24923]' bug1939 = '[ruby-core:24923]'
assert_equal("[#{cmd}]", parse('w /25 # /'), bug1939) assert_equal("[#{cmd}]", parse('w /25 # /'), bug1939)