From 3e11901f1c03f7d3a88349644223f6c920f5f9e2 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: svn+ssh://ci.ruby-lang.org/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 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 -- cgit v1.2.3