summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_enum.rb
Commit message (Collapse)AuthorAgeFilesLines
* * 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