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<localize_elem UP HERE>;
-use lib 't/lib';
use Scope::Upper::TestGenerator;
our ($x, $testcase);
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) = @_;