From: Vincent Pit Date: Thu, 21 Aug 2008 11:07:45 +0000 (+0200) Subject: Fix spurious warnings in t/27-die.t X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=def7e90dcf0c4ebcd1fbea6658f4d7024ef69c1f;p=perl%2Fmodules%2FSub-Nary.git Fix spurious warnings in t/27-die.t --- diff --git a/t/27-die.t b/t/27-die.t index 23c71ce..3d21c60 100644 --- a/t/27-die.t +++ b/t/27-die.t @@ -33,11 +33,12 @@ my @tests = ( [ sub { dies(), 1, do { $x ? @_ : 1 } }, { die => 0.25, 4 => 0.125, 5 => 0.25, list => (0.25 + 0.5) * 0.5 } ], - [ sub { eval "1, do { die }, 3" }, 'list' ], - [ sub { eval { die } }, { 0 => 1 } ], - [ sub { eval { $x ? die : (4, 5) } }, { 0 => 0.5, 2 => 0.5 } ], - [ sub { eval { $x ? die : (4, 5) }; die if $@; 7 }, { die => 0.5, 1 => 0.5 } ], - [ sub { eval { $x ? die : return (4, 5) }; die if $@; 7 }, + [ sub { eval "1, do { die }, 3" }, 'list' ], + [ sub { eval { die } }, { 0 => 1 } ], + [ sub { eval { $x ? die : (4, 5) } }, { 0 => 0.5, 2 => 0.5 } ], + [ sub { my @a = eval { $x ? die : (4, 5) }; die if $@; 7 }, + { die => 0.5, 1 => 0.5 } ], + [ sub { my @a = eval { $x ? die : return (4, 5) }; die if $@; 7 }, { 2 => 0.5, die => 0.25, 1 => 0.25 } ], );