From: Vincent Pit Date: Sun, 30 Nov 2008 00:10:53 +0000 (+0100) Subject: One more eval { return } test X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=5fb3e5333ac16bd608a633d582bf6ddc2f4a2942;p=perl%2Fmodules%2FSub-Nary.git One more eval { return } test --- diff --git a/t/20-return.t b/t/20-return.t index fe5d21b..32f2bc1 100644 --- a/t/20-return.t +++ b/t/20-return.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 68; +use Test::More tests => 69; use Sub::Nary; @@ -84,6 +84,7 @@ my @tests = ( [ sub { eval { return } }, 0 ], [ sub { eval { return 1, 2 } }, 2 ], + [ sub { eval { return 1, 2; 3, 4, 5 } }, 2 ], [ sub { eval { }; return $x, 2 }, 2 ], [ sub { return eval { 1, $x }; }, 2 ], [ sub { return 1, eval { $x, eval { $h{foo} } } }, 3 ],