X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVariable-Magic.git;a=blobdiff_plain;f=t%2F35-stash.t;h=9d094ea57d3e2cbbcc3096e89d97675160c2b19c;hp=2dd9f44d8de1140239f6728648ff9ee2d05abd5a;hb=31d52b17;hpb=ae89b589d2187cf0ed57bbb6132b9d4a8da29abb diff --git a/t/35-stash.t b/t/35-stash.t index 2dd9f44..9d094ea 100644 --- a/t/35-stash.t +++ b/t/35-stash.t @@ -92,11 +92,22 @@ cast %Hlagh::, $wiz; }; my @calls = qw; + my (@fetch, @store); + if ("$]" < 5.011_002) { + @fetch = @calls; + @store = @calls; + } elsif ("$]" < 5.021_004) { + @fetch = @calls; + @store = map { ($_) x 2 } @calls; + } else { + @fetch = map { ($_) x 2 } @calls; + @store = @calls; + } is $@, "ok\n", 'stash: function calls compiled fine'; is_deeply \%mg, { - fetch => \@calls, - store => ("$]" < 5.011_002 ? \@calls : [ map { ($_) x 2 } @calls ]), + fetch => \@fetch, + store => \@store, }, 'stash: function calls'; }