6 use Test::More tests => 4;
8 use Scope::Upper qw<unwind>;
16 is_deeply \@res, [ 7 ], 'unwind()';
22 is_deeply \@res, [ 7 ], 'unwind(-1)';
28 like $@, qr/^Can't\s+return\s+outside\s+a\s+subroutine/, 'unwind(0) croaks';
29 is_deeply \@res, [ 7 ], 'unwind(0)';