]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - t/31-localize_elem-level.t
Trailing whitespace in tests
[perl/modules/Scope-Upper.git] / t / 31-localize_elem-level.t
index b95acd694e9256cad9794f68acc819082ef53698..b9c3e6bbdd88f5ca4a62c11b8e0302912b8c5032 100644 (file)
@@ -3,17 +3,18 @@
 use strict;
 use warnings;
 
-use Test::More 'no_plan'; 
+use lib 't/lib';
+use Test::Leaner 'no_plan';
 
-use Scope::Upper qw/localize_elem/;
+use Scope::Upper qw<localize_elem UP HERE>;
 
-use lib 't/lib';
 use Scope::Upper::TestGenerator;
 
 our ($x, $testcase);
 
 local $Scope::Upper::TestGenerator::call = sub {
  my ($height, $level, $i) = @_;
+ $level = $level ? 'UP ' x $level : 'HERE';
  return [ "localize_elem '\@main::a', 1 => 3 => $level;\n" ];
 };
 
@@ -40,8 +41,9 @@ for my $level (0 .. 2) {
 
 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) = @_;