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:
parent
5809d668bc
commit
d4e2cb1564
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue