]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - t/50-unwind-target.t
Test unwinding while unwinding
[perl/modules/Scope-Upper.git] / t / 50-unwind-target.t
index 430424091d7505145fb518c829d226b8c701300a..9ef70ecf7a213fc80c99621d455b7389c6f7d452 100644 (file)
@@ -5,7 +5,7 @@ use warnings;
 
 use Test::More tests => 4;
 
-use Scope::Upper qw/unwind/;
+use Scope::Upper qw<unwind>;
 
 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)';