diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-29 13:44:50 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-29 13:44:50 +0000 |
commit | fa0f42d4b95dff414e953668258ec7d6486432a4 (patch) | |
tree | 9f3bbc4eefa974c1c9bf32cf21aeff0c952e38f1 | |
parent | 2d97d3ddac90777a9df4edea9c445155e42f30b7 (diff) | |
download | ruby-fa0f42d4b95dff414e953668258ec7d6486432a4.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_iterator.rb | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Fri Feb 29 20:58:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * test/ruby/test_iterator.rb (TestIterator::test_enumerator): + adjust test for zip behavior reversion. + Fri Feb 29 20:25:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org> * string.c (rb_str_chomp_bang): now works on UTF-16. diff --git a/test/ruby/test_iterator.rb b/test/ruby/test_iterator.rb index 4b38ac806a..f6ac645321 100644 --- a/test/ruby/test_iterator.rb +++ b/test/ruby/test_iterator.rb @@ -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 |