X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F21-list.t;h=af3af50d4d9b0e50133031e71ab78e4708725675;hb=24e9267d88e3b5d49961e061b974562c55876c4d;hp=e5bbc40566d25af847940f456266180c4705dc3a;hpb=da043a17ae41baa2154227a2689d31671f055165;p=perl%2Fmodules%2FSub-Nary.git diff --git a/t/21-list.t b/t/21-list.t index e5bbc40..af3af50 100644 --- a/t/21-list.t +++ b/t/21-list.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 33; +use Test::More tests => 39; use Sub::Nary; @@ -56,6 +56,16 @@ my @tests = ( [ sub { eval { }; $x, 2 }, 2 ], [ sub { 1, eval { $x, eval { $h{foo} } } }, 3 ], [ sub { eval { 1, do { eval { @a }, 2 } } }, 'list' ], + + [ sub { eval '1, 2' }, 'list' ], + + [ sub { <$x> }, 'list' ], + + [ sub { -f $0, -r $0 }, 2 ], + + [ sub { stat $0 }, 13 ], + [ sub { caller 0 }, sub { my @a = caller 0; scalar @a }->() ], + [ sub { localtime }, do { my @a = localtime; scalar @a } ], ); my $i = 1;