X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F11-reap-level.t;h=873e901d6a7580ee3c3830223e84e9faa4a8d818;hb=f1d34eeb61ec676615d9aafe69110af9b0dc302a;hp=ccee71baa2d7fa90eb9097bdd1875da2a7a72c5e;hpb=bac4fc46c2d48ce5db75de6c88e0983aeeedf865;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/11-reap-level.t b/t/11-reap-level.t index ccee71b..873e901 100644 --- a/t/11-reap-level.t +++ b/t/11-reap-level.t @@ -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,11 +39,11 @@ $testcase DIAG undef $testcase; } - Test::More::is($a, $b, $desc); + Test::Leaner::is($a, $b, $desc); } } -for my $level (0 .. 4) { +for my $level (0 .. 2) { for my $height ($level + 1 .. $level + 2) { my $tests = Scope::Upper::TestGenerator::gen($height, $level); for (@$tests) {