aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_lazy_enumerator.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-06-01 15:20:21 +0300
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-06-01 15:20:21 +0300
commit464e55f1d0296c3593157a89159f75d58397a1f5 (patch)
tree633c2997092665be7b423a7f9ebde4f7cf913928 /test/ruby/test_lazy_enumerator.rb
parent3c77ef9adc567af58e27c62db35d618f3b3069d2 (diff)
downloadruby-464e55f1d0296c3593157a89159f75d58397a1f5.tar.gz
Ignore warnings about argument prefix with operator symbol.
Diffstat (limited to 'test/ruby/test_lazy_enumerator.rb')
-rw-r--r--test/ruby/test_lazy_enumerator.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_lazy_enumerator.rb b/test/ruby/test_lazy_enumerator.rb
index 03371c912a..d42c8d3261 100644
--- a/test/ruby/test_lazy_enumerator.rb
+++ b/test/ruby/test_lazy_enumerator.rb
@@ -17,9 +17,9 @@ class TestLazyEnumerator < Test::Unit::TestCase
@enum.each do |v|
@current = v
if v.is_a? Enumerable
- yield *v
+ yield(*v)
else
- yield v
+ yield(v)
end
end
end