From e2494d17a06bf5a2eeb8963b1fe981b341abe3b1 Mon Sep 17 00:00:00 2001 From: mame Date: Sun, 8 Feb 2009 14:42:01 +0000 Subject: * 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 --- test/ruby/test_enumerator.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby') 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 -- cgit