X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FSub-Nary.git;a=blobdiff_plain;f=t%2F21-list.t;h=e5bbc40566d25af847940f456266180c4705dc3a;hp=71edefbdefb21cdf8c74049df2632aefda69e75f;hb=da043a17ae41baa2154227a2689d31671f055165;hpb=1f19bf4c8d416851e583ef834e7ab605c2e2af32 diff --git a/t/21-list.t b/t/21-list.t index 71edefb..e5bbc40 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 => 33; use Sub::Nary; @@ -50,6 +50,12 @@ 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' ], ); my $i = 1;