X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F22-localize-block.t;h=f48063a2f6b2ec3165eeab0d54496b35fa325f3f;hb=0a6221d3f467b5f819e3c119b4cda0218399cb51;hp=f9501e2b9d333f38f83d8a703a4c4f3f3914ae99;hpb=e4bb8d889bcaaf2a3c9f1f9cd2a8185115db5db0;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/22-localize-block.t b/t/22-localize-block.t index f9501e2..f48063a 100644 --- a/t/22-localize-block.t +++ b/t/22-localize-block.t @@ -5,13 +5,14 @@ use warnings; use Test::More 'no_plan'; -use Scope::Upper qw/localize/; +use Scope::Upper qw/localize UP HERE/; use lib 't/lib'; use Scope::Upper::TestGenerator; local $Scope::Upper::TestGenerator::call = sub { my ($height, $level, $i) = @_; + $level = $level ? 'UP ' x $level : 'HERE'; return [ "localize '\$x' => 0 => $level;\n" ]; };