forked from MacRuby/MacRuby
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Array#uniq will not remove the element of Array when object type is d…
…ifferent. Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions a1 = [ 1, 1.0, "1.0", 2, 1.0, 1] a2 = a1.dup assert_equal([1, 1.0, "1.0", 2], a1.uniq) assert_equal([1, 1.0, "1.0", 2], a2.uniq!) puts :ok }}} git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4998 23306eb0-4c56-4727-a40e-e92c0eb68959
- Loading branch information
1 parent
295d267
commit c22ea5c
Showing
2 changed files
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
fails:Array#uniq uses eql? semantics | ||
fails:Array#uniq compares elements with matching hash codes with #eql? | ||