]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - t/21-localize-level.t
Trailing whitespace in tests
[perl/modules/Scope-Upper.git] / t / 21-localize-level.t
index 27effbf3bac4036052f45efaac21d0dfab6943b6..e51d519a362e585cb882f87ce50f155fe7bc71c3 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/;
+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 '\$main::y' => 1 => $level;\n" ];
-}; 
+};
 
 local $Scope::Upper::TestGenerator::test = sub {
  my ($height, $level, $i) = @_;
@@ -36,7 +37,7 @@ $testcase
 DIAG
    undef $testcase;
   }
-  Test::More::is($a, $b, $desc);
+  Test::Leaner::is($a, $b, $desc);
  }
 }