diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-19 07:48:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-19 07:48:02 +0000 |
commit | 41f4317f45021460871bd11c666f438f5517904b (patch) | |
tree | c7ac02b58faafe7f92946fe8f14c18480280624f /test/ruby/test_proc.rb | |
parent | 311b7154839b91c87ee40908ac6d3f5c330d7b11 (diff) |
test/ruby: suppress parser warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_proc.rb')
-rw-r--r-- | test/ruby/test_proc.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb index 684a77083d..84055cad60 100644 --- a/test/ruby/test_proc.rb +++ b/test/ruby/test_proc.rb @@ -1264,8 +1264,8 @@ class TestProc < Test::Unit::TestCase def test_local_variables b = get_binding assert_equal(%i'if case when begin end a', b.local_variables) - a = tap {|;a, b| break binding.local_variables} - assert_equal(%i[a b], a.sort) + a = tap {|;x, y| x = y; break binding.local_variables} + assert_equal(%i[a b x y], a.sort) end def test_local_variables_nested @@ -1274,7 +1274,7 @@ class TestProc < Test::Unit::TestCase end def local_variables_of(bind) - this_should_not_be_in_bind = 2 + this_should_not_be_in_bind = this_should_not_be_in_bind = 2 bind.local_variables end |