Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test that List.uniq has === semantics
  • Loading branch information
moritz committed Jan 12, 2013
1 parent 7ec93a8 commit 3582496
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S32-list/uniq.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 12;
plan 13;

=begin description
Expand Down Expand Up @@ -60,4 +60,11 @@ is uniq('a', 'b', 'b', 'c', 'd', 'e', 'b', 'b', 'b', 'b', 'f', 'b'),
is @array.uniq.elems, 2, ".uniq does not use naive WHICH (2)";
}

# RT #111360
{
my class A { method Str { '' } };
is (A.new, A.new).uniq.elems, 2, 'uniq has === semantics';

}

# vim: ft=perl6

0 comments on commit 3582496

Please sign in to comment.