X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F22-localize-block.t;h=b32d25113a8cc12a60270b13cd1f002efaad5a22;hb=c51f72ece23a7afb5590272f6aeca327b91a3945;hp=f9501e2b9d333f38f83d8a703a4c4f3f3914ae99;hpb=bac4fc46c2d48ce5db75de6c88e0983aeeedf865;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/22-localize-block.t b/t/22-localize-block.t index f9501e2..b32d251 100644 --- a/t/22-localize-block.t +++ b/t/22-localize-block.t @@ -3,15 +3,16 @@ use strict; use warnings; -use Test::More 'no_plan'; +use lib 't/lib'; +use Test::Leaner 'no_plan'; -use Scope::Upper qw/localize/; +use Scope::Upper qw; -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" ]; }; @@ -21,7 +22,7 @@ local $Scope::Upper::TestGenerator::test = sub { return "is(\$x, $j, 'x h=$height, l=$level, i=$i');\n"; }; -local $Scope::Upper::TestGenerator::testlocal = sub { '' }; +local $Scope::Upper::TestGenerator::local_test = sub { '' }; local $Scope::Upper::TestGenerator::allblocks = 1; @@ -40,7 +41,7 @@ $testcase DIAG undef $testcase; } - Test::More::is($a, $b, $desc); + Test::Leaner::is($a, $b, $desc); } }