X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F50-unwind-target.t;h=9ef70ecf7a213fc80c99621d455b7389c6f7d452;hb=2ede1b8c4c9b948ddfe278e44f19f4a57648cf10;hp=430424091d7505145fb518c829d226b8c701300a;hpb=0a6221d3f467b5f819e3c119b4cda0218399cb51;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/50-unwind-target.t b/t/50-unwind-target.t index 4304240..9ef70ec 100644 --- a/t/50-unwind-target.t +++ b/t/50-unwind-target.t @@ -5,7 +5,7 @@ use warnings; use Test::More tests => 4; -use Scope::Upper qw/unwind/; +use Scope::Upper qw; my @res; @@ -25,5 +25,5 @@ is_deeply \@res, [ 7 ], 'unwind(-1)'; unwind 0; 8; }); -like $@, qr/^Can't\s+return\s+outside\s+a\s+subroutine/, 'unwind(100) croaks'; -is_deeply \@res, [ 7 ], 'unwind(100)'; +like $@, qr/^Can't\s+return\s+outside\s+a\s+subroutine/, 'unwind(0) croaks'; +is_deeply \@res, [ 7 ], 'unwind(0)';