sync a bunch of files with Test::Simple 0.86
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / t / eq_set.t
1 #!perl -w
2 # $Id$
3
4 BEGIN {
5     if( $ENV{PERL_CORE} ) {
6         chdir 't';
7         @INC = ('../lib', 'lib');
8     }
9     else {
10         unshift @INC, 't/lib';
11     }
12 }
13 chdir 't';
14
15 use strict;
16 use Test::More;
17
18 plan tests => 4;
19
20 # RT 3747
21 ok( eq_set([1, 2, [3]], [[3], 1, 2]) );
22 ok( eq_set([1,2,[3]], [1,[3],2]) );
23
24 # bugs.perl.org 36354
25 my $ref = \2;
26 ok( eq_set( [$ref, "$ref", "$ref", $ref],
27             ["$ref", $ref, $ref, "$ref"] 
28           ) );
29
30 TODO: {
31     local $TODO = q[eq_set() doesn't really handle references];
32
33     ok( eq_set( [\1, \2, \3], [\2, \3, \1] ) );
34 }
35