]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - t/81-stress-level.t
Activate the correct pad when calling the uplevel'd code
[perl/modules/Scope-Upper.git] / t / 81-stress-level.t
index 5dd5d435d18584dba18c043620f5e1c886c1e92b..ddc78e8274237260cde0e64aa92bb5362c297a9c 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/reap/;
+use Scope::Upper qw<reap 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 [ "reap \\&check => $level;\n" ];
 };
 
@@ -38,7 +39,7 @@ $testcase
 DIAG
    undef $testcase;
   }
-  Test::More::is($a, $b, $desc);
+  Test::Leaner::is($a, $b, $desc);
  }
 }