X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F11-reap-level.t;h=2844541e923d86a0d14692ff794313410061a419;hb=e8b8c066e959120b28db728fc7640b606f29faa6;hp=35ac03b3e1ca19895125338fe37ba7a0763a021e;hpb=0a6221d3f467b5f819e3c119b4cda0218399cb51;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/11-reap-level.t b/t/11-reap-level.t index 35ac03b..2844541 100644 --- a/t/11-reap-level.t +++ b/t/11-reap-level.t @@ -3,11 +3,11 @@ 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; -use lib 't/lib'; use Scope::Upper::TestGenerator; local $Scope::Upper::TestGenerator::call = sub { @@ -19,37 +19,19 @@ local $Scope::Upper::TestGenerator::call = sub { local $Scope::Upper::TestGenerator::test = sub { my ($height, $level, $i) = @_; my $j = $i < $height - $level ? 1 : 'undef'; - return "is(\$main::y, $j, 'y h=$height, l=$level, i=$i');\n"; + return "verbose_is(\$main::y, $j, 'y h=$height, l=$level, i=$i');\n"; }; our ($x, $y, $testcase); sub check { $y = 0 unless defined $y; ++$y } -{ - no warnings 'redefine'; - *is = sub ($$;$) { - my ($a, $b, $desc) = @_; - if (defined $testcase - and (defined $b) ? (not defined $a or $a != $b) : defined $a) { - diag <