X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F10-flatten.t;h=414cfcf26305652eee0a07960b31dde6a6fd618d;hb=39b18d4f8f133cb03d47a486464c5c96cb148d5f;hp=8c23c3c105e390eaa0bf45b91a47ba43186735a0;hpb=60e38805350346d06fe27a7dee61932e0da22413;p=perl%2Fmodules%2FSub-Prototype-Util.git diff --git a/t/10-flatten.t b/t/10-flatten.t index 8c23c3c..414cfcf 100644 --- a/t/10-flatten.t +++ b/t/10-flatten.t @@ -41,10 +41,8 @@ my @tests = ( [ '\[$@%]', 'class got scalarref', [ \1 ], [ 1 ] ], [ '\[$@%]', 'class got arrayref', [ [ 1 ] ], [ 1 ] ], [ '\[$@%]', 'class got hashref', [ { 1,2 } ], [ 1, 2 ] ], - [ '_', '_ with argument', [ 1, 2 ], [ 1 ] ] + [ '_', '_ with argument', [ 1, 2 ], [ ] ], + [ '_', '_ with no argument', [ ], [ ] ] ); -my $l = [ '_', '_ with no argument', [ ] ]; -$l->[3] = [ $l ]; -push @tests, $l; is_deeply( [ flatten($_->[0], @{$_->[2]}) ], $_->[3], $_->[1]) for @tests;