X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F31-array.t;h=bb2f96e402b5101e61e627c2739229709fa7ae72;hb=679dba61adf5c453d435fae9f6a8804c8be09336;hp=6f9a8a17fcc80d927340f6181253410d0e466794;hpb=77a84f75f33e3ee44e61182dec76699e23025375;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/31-array.t b/t/31-array.t index 6f9a8a1..bb2f96e 100644 --- a/t/31-array.t +++ b/t/31-array.t @@ -1,5 +1,8 @@ #!perl -T +use strict; +use warnings; + use Test::More tests => 21; use Variable::Magic qw/wizard cast dispell/; @@ -54,7 +57,7 @@ $a[3] = 'd'; ok(check(), 'array : assign new element'); push @a, 'x'; -++$x[1]; ++$x[2]; +++$x[1]; ++$x[2] unless $^V && $^V gt 5.9.2; # since 5.9.3 ok(check(), 'array : push'); pop @a; @@ -87,12 +90,13 @@ ok(check(), 'array : for'); { my @b = @n; -# cast @b, $wiz; + cast @b, $wiz; } -#++$x[4]; +++$x[4]; ok(check(), 'array : scope end'); undef @a; +++$x[3] if $^V && $^V gt 5.9.4; # since 5.9.5 - see #43357 ok(check(), 'array : undef'); dispell @a, $wiz;