X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F81-stress-level.t;h=88bc65d298d796754b7952858c2ea28af80589eb;hb=06553cbfcb3bd6ccbee666625bc6b31c53320969;hp=56dfa308c52e86cda07afd20975491db2250c674;hpb=2c38cd5c99372e9ab0a91cbaedebf68bec6ed2c7;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/81-stress-level.t b/t/81-stress-level.t index 56dfa30..88bc65d 100644 --- a/t/81-stress-level.t +++ b/t/81-stress-level.t @@ -6,7 +6,7 @@ use warnings; use lib 't/lib'; use Test::Leaner 'no_plan'; -use Scope::Upper qw/reap UP HERE/; +use Scope::Upper qw; use Scope::Upper::TestGenerator; @@ -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 <