X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F12-reap-block.t;h=c76e066ec7667c2aa59e753eb1f5bb01657489c1;hb=eef3f2764e7018e3eaf2f1d11f249b510d023a2d;hp=fda9aca7d12686cea427af58d8df21c905b605aa;hpb=c51f72ece23a7afb5590272f6aeca327b91a3945;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/12-reap-block.t b/t/12-reap-block.t index fda9aca..c76e066 100644 --- a/t/12-reap-block.t +++ b/t/12-reap-block.t @@ -19,7 +19,7 @@ local $Scope::Upper::TestGenerator::call = sub { local $Scope::Upper::TestGenerator::test = sub { my ($height, $level, $i, $x) = @_; my $j = $i < $height - $level ? 0 : (defined $x ? $x : 'undef'); - return "is(\$x, $j, 'x h=$height, l=$level, i=$i');\n"; + return "verbose_is(\$x, $j, 'x h=$height, l=$level, i=$i');\n"; }; local $Scope::Upper::TestGenerator::local_decl = sub { @@ -35,30 +35,12 @@ our ($x, $testcase); sub check { $x = (defined $x) ? ($x ? 0 : $x . 'x') : 0 } -{ - no warnings 'redefine'; - *is = sub ($$;$) { - my ($a, $b, $desc) = @_; - if (defined $testcase - and (defined $b) ? (not defined $a or $a != $b) : defined $a) { - diag <