From: Vincent Pit Date: Wed, 17 Jun 2009 22:12:56 +0000 (+0200) Subject: Better test descriptions X-Git-Tag: v0.03~12 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=0c717cedff4b08d709037ba6449abd1b517a2466;p=perl%2Fmodules%2Fautovivification.git Better test descriptions --- diff --git a/t/lib/autovivification/TestCases.pm b/t/lib/autovivification/TestCases.pm index 73faad8..b3521c5 100644 --- a/t/lib/autovivification/TestCases.pm +++ b/t/lib/autovivification/TestCases.pm @@ -12,11 +12,13 @@ sub import { sub in_strict { (caller 0)[8] & (eval { strict::bits(@_) } || 0) }; -sub source { - my ($var, $init, $code, $exp, $use, $global) = @_; +sub generate { + my ($var, $init, $code, $exp, $use, $opts, $global) = @_; my $decl = $global ? "our $var; local $var;" : "my $var;"; my $test = $var =~ /^[@%]/ ? "\\$var" : $var; - return <"; + return <