]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/35-stash.t
This is 0.53
[perl/modules/Variable-Magic.git] / t / 35-stash.t
index ac004677e69bfa1836087af2476e8b3bd5e0a858..2dd9f44d8de1140239f6728648ff9ee2d05abd5a 100644 (file)
@@ -96,7 +96,7 @@ cast %Hlagh::, $wiz;
  is $@, "ok\n", 'stash: function calls compiled fine';
  is_deeply \%mg, {
   fetch => \@calls,
-  store => ("$]" < 5.011002 ? \@calls : [ map { ($_) x 2 } @calls ]),
+  store => ("$]" < 5.011_002 ? \@calls : [ map { ($_) x 2 } @calls ]),
  }, 'stash: function calls';
 }
 
@@ -215,8 +215,9 @@ cast %Hlagh::, $wiz;
 {
  local %mg;
 
- my @expected_stores = map { ($_) x 2 } qw<nevermentioned eat shoot>;
- push @expected_stores, 'nevermentioned' if "$]" < 5.017_001;
+ my @expected_stores = qw<nevermentioned eat shoot>;
+ @expected_stores    = map { ($_) x 2 } @expected_stores if "$]" < 5.017_004;
+ push @expected_stores, 'nevermentioned'                 if "$]" < 5.017_001;
 
  eval q{
   package Hlagh;
@@ -295,7 +296,7 @@ $_ => sub {
 CB
 } qw<fetch store exists delete>);
 
-my $uo_exp = "$]" < 5.011002 ? 2 : 3;
+my $uo_exp = "$]" < 5.011_002 ? 2 : 3;
 
 $code .= ', data => sub { +{ guard => 0 } }';