use strict;
use warnings;
-use Test::More 'no_plan';
+use lib 't/lib';
+use Test::Leaner 'no_plan';
-use Scope::Upper qw/reap UP HERE/;
+use Scope::Upper qw<reap UP HERE>;
-use lib 't/lib';
use Scope::Upper::TestGenerator;
local $Scope::Upper::TestGenerator::call = sub {
return "is(\$x, $j, 'x h=$height, l=$level, i=$i');\n";
};
-local $Scope::Upper::TestGenerator::local = sub {
+local $Scope::Upper::TestGenerator::local_decl = sub {
my ($height, $level, $i, $x) = @_;
return $i == $height - $level ? "\$x = $x;\n" : "local \$x = $x;\n";
};
-local $Scope::Upper::TestGenerator::testlocal = sub { '' };
+local $Scope::Upper::TestGenerator::local_test = sub { '' };
local $Scope::Upper::TestGenerator::allblocks = 1;
DIAG
undef $testcase;
}
- Test::More::is($a, $b, $desc);
+ Test::Leaner::is($a, $b, $desc);
}
}