X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F23-branch.t;h=fef709dc1da61c42bddf566e42d0ca974b4c924e;hb=227091e8025c3c9d8e7e5e2654714c5d2eef612b;hp=e2638f76bc246b62d23623bc4177b6a54819ced9;hpb=8830bd5a774a9d459a6c843b7dbc177c13f753fc;p=perl%2Fmodules%2FSub-Nary.git diff --git a/t/23-branch.t b/t/23-branch.t index e2638f7..fef709d 100644 --- a/t/23-branch.t +++ b/t/23-branch.t @@ -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}, $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;