Clear up test based on line number differences between the core and the
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / t / eq_set.t
CommitLineData
30e302f8 1#!perl -w
2
3BEGIN {
4 if( $ENV{PERL_CORE} ) {
5 chdir 't';
6 @INC = ('../lib', 'lib');
7 }
8 else {
9 unshift @INC, 't/lib';
10 }
11}
12chdir 't';
13
14use strict;
15use Test::More;
16
b1ddf169 17plan tests => 4;
30e302f8 18
19# RT 3747
20ok( eq_set([1, 2, [3]], [[3], 1, 2]) );
21ok( eq_set([1,2,[3]], [1,[3],2]) );
b1ddf169 22
23# bugs.perl.org 36354
24my $ref = \2;
25ok( eq_set( [$ref, "$ref", "$ref", $ref],
26 ["$ref", $ref, $ref, "$ref"]
27 ) );
28
29TODO: {
30 local $TODO = q[eq_set() doesn't really handle references];
31
32 ok( eq_set( [\1, \2, \3], [\2, \3, \1] ) );
33}
34