Skip to content

Commit 47ae049

Browse files
author
Fitz Elliott
committed
test infix:<^^>'s short circuiting
1 parent 89c9e47 commit 47ae049

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

S03-operators/short-circuit.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ plan 39;
8888
$x ^^ ($y = 42);
8989

9090
is($y, 42, "^^ operator not short circuiting");
91+
92+
$x = 0;
93+
1 ^^ 2 ^^ ($x = 5);
94+
is($x, 0, "^^ operator short circuiting");
9195
}
9296

9397
{

0 commit comments

Comments
 (0)