From 41f4317f45021460871bd11c666f438f5517904b Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 19 Feb 2016 07:48:02 +0000 Subject: test/ruby: suppress parser warnings git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_proc.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/ruby/test_proc.rb') 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 -- cgit v1.2.3