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 | 05be244e60b5aa8edc1d4a0a4d315dd815da2031 (patch) | |
tree | c7ac02b58faafe7f92946fe8f14c18480280624f /test/ruby/test_proc.rb | |
parent | 4e316341843fe57dddf267fee753ee430ff39508 (diff) | |
download | ruby-05be244e60b5aa8edc1d4a0a4d315dd815da2031.tar.gz |
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 |