mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_iterator.rb (TestIterator::test_enumerator):
adjust test for zip behavior reversion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2d97d3ddac
commit
fa0f42d4b9
2 changed files with 7 additions and 2 deletions
|
@ -491,7 +491,7 @@ class TestIterator < Test::Unit::TestCase
|
|||
loop{a.push e.next}
|
||||
assert_equal([1,2,3], a)
|
||||
|
||||
assert_equal([[1, 8, 10], [2, 6, 11], [3, 4, 12]],
|
||||
(1..10).zip([8,6,4],(10..100)).to_a)
|
||||
assert_equal([[8, 1, 10], [6, 2, 11], [4, 3, 12]],
|
||||
[8,6,4].zip((1..10),(10..100)).to_a)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue