enhance conditionals (#3557)

This commit is contained in:
Alex Lam S.L
2019-10-31 09:33:46 +08:00
committed by GitHub
parent 1858c2018c
commit 3797458365
2 changed files with 28 additions and 8 deletions

View File

@@ -161,6 +161,24 @@ ifs_6: {
}
}
ifs_7: {
options = {
conditionals: true,
}
input: {
if (A); else;
if (A) while (B); else;
if (A); else while (C);
if (A) while (B); else while (C);
}
expect: {
A;
if (A) while (B);
if (!A) while (C);
if (A) while (B); else while (C);
}
}
cond_1: {
options = {
conditionals: true,