[ruby-cvs:63573] nobu:r56410 (trunk): test_array.rb: do not assume stable sort

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Oct 13 00:39:10 JST 2016


nobu	2016-10-13 00:39:10 +0900 (Thu, 13 Oct 2016)

  New Revision: 56410

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

  Log:
    test_array.rb: do not assume stable sort
    
    * test/ruby/test_array.rb (test_sort_bang_with_freeze): make a
      clone to copy a <=> singleton method, instead of dup.  which
      element will be called is not predictable.
      [ruby-core:76088] [Bug #12509]

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


More information about the ruby-cvs mailing list