summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-08 14:42:01 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-08 14:42:01 +0000
commite2494d17a06bf5a2eeb8963b1fe981b341abe3b1 (patch)
tree16049ef9eed9397783128454832617a0f05258c1 /test
parente46c459c04d30bbca0c8346fb253e5b42664b9ad (diff)
downloadruby-e2494d17a06bf5a2eeb8963b1fe981b341abe3b1.tar.gz
ruby-e2494d17a06bf5a2eeb8963b1fe981b341abe3b1.tar.xz
ruby-e2494d17a06bf5a2eeb8963b1fe981b341abe3b1.zip
* enumerator.c (enumerator_with_index): receives one argument which
represents a start offset. [ruby-dev:37921] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_enumerator.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_enumerator.rb b/test/ruby/test_enumerator.rb
index 53b70c33d..8a2417c5d 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