]> git.vpit.fr Git - perl/modules/Variable-Magic.git/commitdiff
Really make t/35-stash.t pass on 5.21.4 rt98525
authorVincent Pit <vince@profvince.com>
Mon, 22 Sep 2014 16:20:30 +0000 (18:20 +0200)
committerVincent Pit <vince@profvince.com>
Mon, 22 Sep 2014 16:20:30 +0000 (18:20 +0200)
Looks like the core was changed between commit 31d52b17 and the release
of perl 5.21.4.

t/35-stash.t

index 9d094ea57d3e2cbbcc3096e89d97675160c2b19c..5ec42fd1f0826b7ccea1847b72b38be69435c318 100644 (file)
@@ -93,14 +93,11 @@ cast %Hlagh::, $wiz;
 
  my @calls = qw<eat shoot leave roam yawn roam>;
  my (@fetch, @store);
 
  my @calls = qw<eat shoot leave roam yawn roam>;
  my (@fetch, @store);
- if ("$]" < 5.011_002) {
-  @fetch = @calls;
-  @store = @calls;
- } elsif ("$]" < 5.021_004) {
+ if ("$]" >= 5.011_002 && "$]" < 5.021_004) {
   @fetch = @calls;
   @store = map { ($_) x 2 } @calls;
  } else {
   @fetch = @calls;
   @store = map { ($_) x 2 } @calls;
  } else {
-  @fetch = map { ($_) x 2 } @calls;
+  @fetch = @calls;
   @store = @calls;
  }
 
   @store = @calls;
  }
 
@@ -307,7 +304,7 @@ $_ => sub {
 CB
 } qw<fetch store exists delete>);
 
 CB
 } qw<fetch store exists delete>);
 
-my $uo_exp = "$]" < 5.011_002 ? 2 : 3;
+my $uo_exp = "$]" >= 5.011_002 && "$]" < 5.021_004 ? 3 : 2;
 
 $code .= ', data => sub { +{ guard => 0 } }';
 
 
 $code .= ', data => sub { +{ guard => 0 } }';