X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F31-localize_elem-level.t;h=b9c3e6bbdd88f5ca4a62c11b8e0302912b8c5032;hb=7505ee1e658a27b68ebe24c52c1db86694251bb4;hp=a4845b2541a26158bf321b0210b4040ac3cc19b5;hpb=0a6221d3f467b5f819e3c119b4cda0218399cb51;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/31-localize_elem-level.t b/t/31-localize_elem-level.t index a4845b2..b9c3e6b 100644 --- a/t/31-localize_elem-level.t +++ b/t/31-localize_elem-level.t @@ -3,11 +3,11 @@ use strict; use warnings; -use Test::More 'no_plan'; +use lib 't/lib'; +use Test::Leaner 'no_plan'; -use Scope::Upper qw/localize_elem UP HERE/; +use Scope::Upper qw; -use lib 't/lib'; use Scope::Upper::TestGenerator; our ($x, $testcase); @@ -43,7 +43,7 @@ local $Scope::Upper::TestGenerator::call = sub { my ($height, $level, $i) = @_; $level = $level ? 'UP ' x $level : 'HERE'; return [ "localize_elem '%main::h', 'a' => 1 => $level;\n" ]; -}; +}; local $Scope::Upper::TestGenerator::test = sub { my ($height, $level, $i) = @_;