mediawiki-extensions-AbuseF.../tests/parserTests/multipleconditionals.t
Daimona Eaytoy 430ba818d0 Add test for multiple conditions inside conditionals
The regression itself was fixed in
I980aec3481a52ecc35f1811a366014a5581a7cdb, so this patch only adds a
test for it.
Also remove a comment about CachingParser failures: we don't want to
encourage people to remove it from tests anymore.

Bug: T152281
Change-Id: I3ad49050ea49bf45d3226878e091da3c8dbefdb1
2019-08-12 18:18:05 +02:00

29 lines
291 B
Raku

/* For T152281 */
v1 := 0; v2 := 0;
if ( 1 == 1 ) then
(
v1 := 1; v2 := 1;
)
else
(
v1 := 2; v2 := 2;
)
end;
if ( 1 == 1 ) then
( v1 := 1; )
else
(
v1 := 2; v2 := 2;
)
end;
if ( 1 == 1 ) then
( v1 := 2 === 2 ? 1 : 3; )
else
(
v1 := 'x' === 'y' ? 2 : 3;
v2 := v1 ** 2;
)
end;