diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-08 14:42:01 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-08 14:42:01 +0000 |
commit | 3e11901f1c03f7d3a88349644223f6c920f5f9e2 (patch) | |
tree | 16049ef9eed9397783128454832617a0f05258c1 /test/ruby | |
parent | e5f588c83d7ed0ecdbbafe12aa2920c3b5227c3e (diff) | |
download | ruby-3e11901f1c03f7d3a88349644223f6c920f5f9e2.tar.gz |
* enumerator.c (enumerator_with_index): receives one argument which
represents a start offset. [ruby-dev:37921]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_enumerator.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_enumerator.rb b/test/ruby/test_enumerator.rb index 53b70c33da..8a2417c5d5 100644 --- a/test/ruby/test_enumerator.rb +++ b/test/ruby/test_enumerator.rb @@ -94,6 +94,7 @@ class TestEnumerator < Test::Unit::TestCase def test_with_index assert_equal([[1,0],[2,1],[3,2]], @obj.to_enum(:foo, 1, 2, 3).with_index.to_a) + assert_equal([[1,5],[2,6],[3,7]], @obj.to_enum(:foo, 1, 2, 3).with_index(5).to_a) end def test_with_object |