[ruby-cvs:51657] tmm1:r44512 (trunk): array.c: return first unique element in Array#uniq

tmm1 at ruby-lang.org tmm1 at ruby-lang.org
Tue Jan 7 04:38:21 JST 2014


tmm1	2014-01-07 04:38:20 +0900 (Tue, 07 Jan 2014)

  New Revision: 44512

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44512

  Log:
    array.c: return first unique element in Array#uniq
    
    * array.c (ary_add_hash): Fix consistency issue between Array#uniq and
      Array#uniq! [Bug #9340] [ruby-core:59457]
    * test/ruby/test_array.rb (class TestArray): regression test for above.

  Modified files:
    trunk/ChangeLog
    trunk/array.c
    trunk/test/ruby/test_array.rb


More information about the ruby-cvs mailing list