[ruby-cvs:61311] mame:r54150 (trunk): * array.c (rb_ary_max, rb_ary_min): Array#max and Array#min added.

mame at ruby-lang.org mame at ruby-lang.org
Thu Mar 17 21:14:21 JST 2016


mame	2016-03-17 21:14:21 +0900 (Thu, 17 Mar 2016)

  New Revision: 54150

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

  Log:
    * array.c (rb_ary_max, rb_ary_min): Array#max and Array#min added.
      [Feature #12172]
    
    * internal.h (OPTIMIZED_CMP): moved from enum.c so that array.c can
      use it.
    
    * test/ruby/test_array.rb (test_max, test_min): tests for Array#max
      and Array#min.
    
    * test/ruby/test_enum.rb (test_max, test_min): revised a bit to test
      Enumerable#max and #min explicitly.

  Modified files:
    trunk/ChangeLog
    trunk/array.c
    trunk/enum.c
    trunk/internal.h
    trunk/test/ruby/test_array.rb
    trunk/test/ruby/test_enum.rb


More information about the ruby-cvs mailing list