X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FSub-Prototype-Util.git;a=blobdiff_plain;f=t%2F11-wrap.t;h=4f88d76ac982cb986c37bc20bc0e063ce6238a71;hp=88ee5c6563034295b4b75f24d38270e07c0c708e;hb=993667a6ba54b9a581601fddbca89172eb9a7504;hpb=ea95d5eb42f17626bfca0f26e58a7d6c28e74d47 diff --git a/t/11-wrap.t b/t/11-wrap.t index 88ee5c6..4f88d76 100644 --- a/t/11-wrap.t +++ b/t/11-wrap.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 7 + 6 + 3 + 1 + 6 + 1 + (($^V ge v5.10.0) ? 2 : 0) + 1; +use Test::More tests => 7 + 6 + 3 + 1 + 6 + 1 + (("$]" >= 5.010) ? 2 : 0) + 1; use Scalar::Util qw; use Sub::Prototype::Util qw; @@ -101,7 +101,7 @@ sub cat (\[$@]\[$@]) { SKIP: { skip 'perl 5.8.x is needed to test execution of \[$@] prototypes' => 6 - if $^V lt v5.8.0; + if "$]" < 5.008; my $cat = wrap 'main::cat', ref => 'main::myref', sub => 1, @@ -128,7 +128,7 @@ my $noproto = wrap 'main::noproto', sub => 0; is($noproto, $noproto_exp, 'no prototype'); sub myit { my $ar = shift; push @$ar, @_; }; -if ($^V ge v5.10.0) { +if ("$]" >= 5.010) { set_prototype \&myit, '\@$_'; my $it = wrap 'main::myit'; my @a = qw;