diff options
author | Jeremy Evans <code@jeremyevans.net> | 2023-12-14 18:44:13 -0800 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2023-12-14 18:44:13 -0800 |
commit | 29e99c84ae8059cd308cf1c06be05f62c55cd68d (patch) | |
tree | 9f842c8fc08fc46b964fa57837d1f96a0a9e6c2f /test/ruby/test_call.rb | |
parent | b98bd10f255d0afe33ba3c4410dd2c05c61695fb (diff) |
Remove unused variables in test_call_op_asgn_keywords_mutable
Diffstat (limited to 'test/ruby/test_call.rb')
-rw-r--r-- | test/ruby/test_call.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/ruby/test_call.rb b/test/ruby/test_call.rb index 5993506b5f..09146efa41 100644 --- a/test/ruby/test_call.rb +++ b/test/ruby/test_call.rb @@ -285,7 +285,7 @@ class TestCall < Test::Unit::TestCase h = Class.new do attr_reader :get, :set def v; yield; [*@get, *@set] end - def [](*a, **b, &c) + def [](*a, **b) @get = [a.dup, b.dup] a << :splat_modified b[:kw_splat_modified] = true @@ -297,7 +297,6 @@ class TestCall < Test::Unit::TestCase a = [] kw = {} - b = lambda{} assert_equal([[2], {b: 5}, [2, 4], {b: 5}], h.v{h[*a, 2, b: 5, **kw] += 1}) end |