Upgrade to Test-Simple-0.82.
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / t / eq_set.t
CommitLineData
30e302f8 1#!perl -w
ccbd73a4 2# $Id: /mirror/googlecode/test-more/t/eq_set.t 57943 2008-08-18T02:09:22.275428Z brooklyn.kid51 $
30e302f8 3
4BEGIN {
5 if( $ENV{PERL_CORE} ) {
6 chdir 't';
7 @INC = ('../lib', 'lib');
8 }
9 else {
10 unshift @INC, 't/lib';
11 }
12}
13chdir 't';
14
15use strict;
16use Test::More;
17
b1ddf169 18plan tests => 4;
30e302f8 19
20# RT 3747
21ok( eq_set([1, 2, [3]], [[3], 1, 2]) );
22ok( eq_set([1,2,[3]], [1,[3],2]) );
b1ddf169 23
24# bugs.perl.org 36354
25my $ref = \2;
26ok( eq_set( [$ref, "$ref", "$ref", $ref],
27 ["$ref", $ref, $ref, "$ref"]
28 ) );
29
30TODO: {
31 local $TODO = q[eq_set() doesn't really handle references];
32
33 ok( eq_set( [\1, \2, \3], [\2, \3, \1] ) );
34}
35