X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F30-scalar.t;h=4189ee5dfab5491f4653232442c1f7eccf7ef6e2;hb=78d307d30a1fa82e6b8e7ba95c617d9b87eb4d45;hp=bc9004f0fc6628a20a6727193c58b149e501d34c;hpb=de835bf83e502c2787cbf91fcd99d1961179f4d9;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/30-scalar.t b/t/30-scalar.t index bc9004f..4189ee5 100644 --- a/t/30-scalar.t +++ b/t/30-scalar.t @@ -72,7 +72,7 @@ $b = watch { exists $a[1] } { }, 'array element: exists'; is $b, 1, 'scalar: array element: exists correctly'; # $b has to be set inside the block for the test to pass on 5.8.3 and lower -watch { $b = delete $a[1] } { get => 1, free => ("$]" > 5.008005 ? 1 : 0) }, +watch { $b = delete $a[1] } { get => 1, free => ("$]" > 5.008_005 ? 1 : 0) }, 'array element: delete'; is $b, 6, 'scalar: array element: delete correctly';