X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F55-unwind-multi.t;h=59c869c45514740a0caf11fc0065a5b8ea9cc33b;hb=daa5478303f254eff6015045396920baafee0688;hp=aa37026a69568463dfa937504720c441333d9da3;hpb=c3c8cfc85dacca6cceb4872df2c33502e2dcf4fa;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/55-unwind-multi.t b/t/55-unwind-multi.t index aa37026..59c869c 100644 --- a/t/55-unwind-multi.t +++ b/t/55-unwind-multi.t @@ -5,7 +5,7 @@ use warnings; use Test::More tests => 13; -use Scope::Upper qw/unwind/; +use Scope::Upper qw; my ($l1, $l2); @@ -17,10 +17,10 @@ sub c { unwind("eval", eval { do { for (3, 4, 5) { - 1, unwind('from', 'the', 'sub', 'c' => $l1); + 1, unwind('from', 'the', 'sub', 'c' => SCOPE $l1); } } - } => $l2); + } => SCOPE $l2); }->(2, 3, 4); return 'in c' } @@ -46,20 +46,20 @@ is_deeply [ a() ], [ 1 .. 12, 'in c', 'in b', 'in a' ], $l1 = 0; $l2 = 1; -is_deeply [ a() ], [ 1 .. 12, qw/eval from the sub c/, 'in b', 'in a' ], +is_deeply [ a() ], [ 1 .. 12, qw, 'in b', 'in a' ], 'l1=0, l2=1'; $l1 = 0; $l2 = 2; -is_deeply [ a() ], [ qw/eval from the sub c/, 'in a' ], +is_deeply [ a() ], [ qw, 'in a' ], 'l1=0, l2=2'; $l1 = 4; $l2 = 999; -is_deeply [ a() ], [ 1 .. 12, qw/from the sub c/, 'in b', 'in a' ], +is_deeply [ a() ], [ 1 .. 12, qw, 'in b', 'in a' ], 'l1=4, l2=?'; $l1 = 5; $l2 = 999; -is_deeply [ a() ], [ qw/from the sub c/, 'in a' ], +is_deeply [ a() ], [ qw, 'in a' ], 'l1=5, l2=?';