summaryrefslogtreecommitdiff
path: root/test/ruby/test_proc.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-19 07:48:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-19 07:48:02 +0000
commit41f4317f45021460871bd11c666f438f5517904b (patch)
treec7ac02b58faafe7f92946fe8f14c18480280624f /test/ruby/test_proc.rb
parent311b7154839b91c87ee40908ac6d3f5c330d7b11 (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.rb6
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