summaryrefslogtreecommitdiff
path: root/test/ruby/test_proc.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-30 09:34:41 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-30 11:45:37 +0900
commit409b0ec4c3c4878c0ba164d1303de67787157808 (patch)
tree292c5554ee9f81571b760d359ac9513c44da3ee0 /test/ruby/test_proc.rb
parent84837e6d16cb0e588b1acc2691cb1048b9a89989 (diff)
Suppress unused variable warnings
Diffstat (limited to 'test/ruby/test_proc.rb')
-rw-r--r--test/ruby/test_proc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb
index 17def93362..bc270115df 100644
--- a/test/ruby/test_proc.rb
+++ b/test/ruby/test_proc.rb
@@ -1302,7 +1302,7 @@ 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 {|;x, y| x = y; break binding.local_variables}
+ a = tap {|;x, y| x = y = x; break binding.local_variables}
assert_equal(%i[a b x y], a.sort)
end