]> git.vpit.fr Git - perl/modules/Sub-Nary.git/blobdiff - t/23-branch.t
Update VPIT::TestHelpers to 15e8aee3
[perl/modules/Sub-Nary.git] / t / 23-branch.t
index e2638f76bc246b62d23623bc4177b6a54819ced9..fef709dc1da61c42bddf566e42d0ca974b4c924e 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 21 + ($^V ge v5.10.0 ? 1 : 0);
+use Test::More tests => 21 + ("$]" >= 5.010 ? 1 : 0);
 
 use Sub::Nary;
 
@@ -40,7 +40,7 @@ sub ret1234 {
  } elsif ($h{foo}) {
   return 3, @a[4, 5];
  } elsif (@a) {
-  return @h{qw/a b c/}, $y
+  return @h{qw<a b c>}, $y
  }
 }
 
@@ -86,7 +86,7 @@ my @tests = (
  [ sub { $x or (3, 4) }, { 1 => 0.5, 2 => 0.5 } ],
  [ sub { $x &&  (3, 4) }, { 1 => 0.5, 2 => 0.5 } ],
  [ sub { $x and (3, 4) }, { 1 => 0.5, 2 => 0.5 } ],
- (([ eval 'sub { $x // (3, 4) }', { 1 => 0.5, 2 => 0.5 } ]) x ($^V ge v5.10.0)),
+ (([ eval 'sub { $x // (3, 4) }', { 1 => 0.5, 2 => 0.5 } ]) x ("$]" >= 5.010)),
 );
 
 my $i = 1;