X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F85-stress-unwind.t;h=fa52bcd07b34eb83e22d7cf6505610298a5dda76;hb=7505ee1e658a27b68ebe24c52c1db86694251bb4;hp=5a59e7a01af26eae18b5be2d8682d2f2811d6561;hpb=df13e52b10dc5902a7f1a0b02dc7fb5eef429944;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/85-stress-unwind.t b/t/85-stress-unwind.t index 5a59e7a..fa52bcd 100644 --- a/t/85-stress-unwind.t +++ b/t/85-stress-unwind.t @@ -3,14 +3,16 @@ use strict; use warnings; -use Test::More 'no_plan'; +use lib 't/lib'; +use Test::Leaner 'no_plan'; -use Scope::Upper qw/unwind/; +use Scope::Upper qw; our ($call, @args, $args); $call = sub { my ($height, $level, $i) = @_; + $level = $level ? 'UP ' x $level : 'HERE'; return [ [ "unwind(\@args => $level)\n", '' ] ]; }; @@ -86,7 +88,7 @@ DIAG } } -for ([ ], [ 'A' ], [ qw/B C/ ]) { +for ([ ], [ 'A' ], [ qw ]) { @args = @$_; $args = '(' . join(', ', map "'$_'", @args) . ')'; runtests 0, 0;