]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - t/22-localize-block.t
Prevent simple uplevel argument tests from reifying @_
[perl/modules/Scope-Upper.git] / t / 22-localize-block.t
index f9501e2b9d333f38f83d8a703a4c4f3f3914ae99..ea189d8eb7e9a9446897792b4b7b693c6ca09ac7 100644 (file)
@@ -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<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" ];
 };
 
@@ -40,7 +41,7 @@ $testcase
 DIAG
    undef $testcase;
   }
-  Test::More::is($a, $b, $desc);
+  Test::Leaner::is($a, $b, $desc);
  }
 }