diff options
Diffstat (limited to 'AbuseFilter/tests/parserTests/multipleconditionals.t')
-rw-r--r-- | AbuseFilter/tests/parserTests/multipleconditionals.t | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/AbuseFilter/tests/parserTests/multipleconditionals.t b/AbuseFilter/tests/parserTests/multipleconditionals.t new file mode 100644 index 00000000..74a7b9fb --- /dev/null +++ b/AbuseFilter/tests/parserTests/multipleconditionals.t @@ -0,0 +1,28 @@ +/* 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; |