[ruby-cvs:62195] mrkn:r55032 (trunk): Implement Enumerable#sum

mrkn at ruby-lang.org mrkn at ruby-lang.org
Tue May 17 22:58:47 JST 2016


mrkn	2016-05-17 22:58:46 +0900 (Tue, 17 May 2016)

  New Revision: 55032

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55032

  Log:
    Implement Enumerable#sum
    
    * enum.c (enum_sum): Implement Enumerable#sum.
    
    * test/ruby/test_enum.rb (test_sum): Test sum for Enumerable.
    
    * test/ruby/test_hash.rb (test_sum): Test sum for Hash.
    
    * test/ruby/test_range.rb (test_sum): Test sum for Range.

  Modified files:
    trunk/ChangeLog
    trunk/enum.c
    trunk/test/ruby/test_enum.rb
    trunk/test/ruby/test_hash.rb
    trunk/test/ruby/test_range.rb


More information about the ruby-cvs mailing list