X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F21-list.t;h=c260cd3edffe652400efb0c59a68bb4476b94c7b;hb=fb7bf9d912eada90e9d1c7f8da68ae8e76f63111;hp=71edefbdefb21cdf8c74049df2632aefda69e75f;hpb=1a31caf5f555fb5f0b63ac682c7ea4b542282186;p=perl%2Fmodules%2FSub-Nary.git diff --git a/t/21-list.t b/t/21-list.t index 71edefb..c260cd3 100644 --- a/t/21-list.t +++ b/t/21-list.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 28; +use Test::More tests => 34; use Sub::Nary; @@ -50,6 +50,14 @@ my @tests = ( [ sub { while (1) { } }, 0 ], [ sub { while (1) { 1; } 1, 2 }, 2 ], + + [ sub { eval { } }, 0 ], + [ sub { eval { 1, 2 } }, 2 ], + [ 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' ], ); my $i = 1;