summaryrefslogtreecommitdiff
path: root/test/ruby/test_array.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-04-23 10:35:29 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-04-23 10:35:29 +0900
commit3ea2a407130332892083ce053d54b5ea3bc0ce0c (patch)
tree76e2b28e20c4f10c8c1a4b15d6569996a3fef369 /test/ruby/test_array.rb
parente628058c1a39f279629f89b57ee224aff8d0dc62 (diff)
Suppress warnings for unsued variable
Diffstat (limited to 'test/ruby/test_array.rb')
-rw-r--r--test/ruby/test_array.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index 4a9863cc54..fb50f581fe 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -2741,9 +2741,9 @@ class TestArray < Test::Unit::TestCase
step = 0.step
e = Enumerator.produce { step.next }
a = %w(a b c)
- assert_equal([["a", 0], ["b", 1], ["c", 2]], a.zip(e))
- assert_equal([["a", 3], ["b", 4], ["c", 5]], a.zip(e))
- assert_equal([["a", 6], ["b", 7], ["c", 8]], a.zip(e))
+ assert_equal([["a", 0], ["b", 1], ["c", 2]], a.zip(e), bug17814)
+ assert_equal([["a", 3], ["b", 4], ["c", 5]], a.zip(e), bug17814)
+ assert_equal([["a", 6], ["b", 7], ["c", 8]], a.zip(e), bug17814)
end
def test_transpose