summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_enum.rb
Commit message (Collapse)AuthorAgeFilesLines
* * test/ruby/test_enum.rb (test_count): marked as an implementationnobu2009-10-301-8/+10
| | | | | | | specific test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_enum.rb (test_count): test for [ruby-core:24794].nobu2009-10-301-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_slice_before): take a pattern if no block given.akr2009-10-021-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_chunk): new method Enumerable#chunk.akr2009-09-221-0/+70
| | | | | | | | * enum.c (enum_slice_before): new method Enumerable#slice_before. [ruby-dev:38392] [ruby-dev:39240] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_enum.rb (TestEnumerable#each): recursive join nowmatz2009-07-221-2/+2
| | | | | | raises ArgumentError. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (recursive_join): use obj to tell if recursion occurs.nobu2009-07-101-4/+13
| | | | | | | | | [ruby-core:24150] * enum.c (enum_join): reverted r23966. [ruby-core:24196] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (rb_enum_join): non-nil separator must be convertible tonobu2009-07-071-0/+9
| | | | | | | String. [ruby-core:24172] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_join): deals with self recursive objects to get ridnobu2009-07-061-0/+14
| | | | | | | of infinite recursion. [ruby-core:24150] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_enum.rb: add some tests.mame2009-03-081-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (take_items): to_ary() raises ArgumentError if cannot tousa2009-01-211-1/+4
| | | | | | | | convert to Array. [ruby-dev:37797] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (take_items), enum.c (enum_zip): tries to convert tonobu2009-01-191-0/+5
| | | | | | | array first. [ruby-core:21442] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_enum.rb (TestEnumerable#test_each_with_object):knu2008-08-261-0/+10
| | | | | | | | Add a test for Enumerable#each_with_object. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_count, count_all_i, Init_Enumerable),knu2008-05-291-0/+1
| | | | | | | | array.c (rb_ary_count): If no argument or block is given, count the number of all elements. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_find_index): Add support for find_index(obj);knu2008-04-111-0/+2
| | | | | | | | | [ruby-dev:34313]. * array.c (rb_ary_index): Define find_index as an alias to index. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_bignum.rb: suppress warnings during test.mame2008-01-311-0/+6
| | | | | | | | | | | | | | * test/ruby/test_enum.rb: ditto. * test/ruby/test_integer.rb: add tests to achieve over 90% test coverage of numeric.c. * test/ruby/test_float.rb: ditto. * test/ruby/test_fixnum.rb: ditto. * test/ruby/test_numeric.rb: ditto. * test/ruby/test_pack.rb: add tests to achieve over 90% test coverage of pack.c. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_enumerator.rb: add tests to achieve over 90% testmame2008-01-291-0/+250
coverage of enumerator.c. * test/ruby/test_enum.rb: add for enum.c. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e