diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-06-30 09:34:41 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-06-30 11:45:37 +0900 |
commit | 409b0ec4c3c4878c0ba164d1303de67787157808 (patch) | |
tree | 292c5554ee9f81571b760d359ac9513c44da3ee0 /test/ruby/test_proc.rb | |
parent | 84837e6d16cb0e588b1acc2691cb1048b9a89989 (diff) |
Suppress unused variable warnings
Diffstat (limited to 'test/ruby/test_proc.rb')
-rw-r--r-- | test/ruby/test_proc.rb | 2 |
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 |