X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F10-simple.t;h=1fdefcd61aa3e8b418e9863eecf5cd38b0b2b229;hb=8d1e537ed209474d537750620e118f79455a883f;hp=854cddeb027279db285de89463a20398a109cfb4;hpb=ed119184e2325cba49804db12687cc7b2526b87c;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/10-simple.t b/t/10-simple.t index 854cdde..1fdefcd 100644 --- a/t/10-simple.t +++ b/t/10-simple.t @@ -11,7 +11,7 @@ my $args = 7; ++$args if MGf_COPY; ++$args if MGf_DUP; ++$args if MGf_LOCAL; -$args += 4 if VMG_UVAR; +$args += 5 if VMG_UVAR; for (0 .. 20) { next if $_ == $args; eval { Variable::Magic::_wizard(('hlagh') x $_) }; @@ -72,5 +72,5 @@ is($@, '', 'cast from obsolete signature doesn\'t croak'); is($res, undef, 'cast from obsolete signature returns undef'); $res = eval { cast $c, undef }; -like($@, qr/Invalid\s+numeric\s+signature\s+at\s+\Q$0\E/, 'cast from undef croaks'); +like($@, qr/Invalid\s+wizard\s+object\s+at\s+\Q$0\E/, 'cast from undef croaks'); is($res, undef, 'cast from undef doesn\'t return anything');