]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/20-get.t
Fix the testsuite for 5.8.3 and lower
[perl/modules/Variable-Magic.git] / t / 20-get.t
index a308df598ddbadafc4bcfea44add9d89a51f5a88..02ef39bc62d2902e94bf0b2d67d9715eec5b448f 100644 (file)
@@ -17,7 +17,9 @@ my $a = $n;
 
 check { cast $a, $wiz } { }, 'cast';
 
-my $b = check { $a } { get => 1 }, 'assign to';
+my $b;
+# $b has to be set inside the block for the test to pass on 5.8.3 and lower
+check { $b = $a } { get => 1 }, 'assign to';
 is $b, $n, 'get: assign to correctly';
 
 $b = check { "X${a}Y" } { get => 1 }, 'interpolate';