Java: delete two test cases as per code review

This commit is contained in:
yo-h
2021-02-14 21:42:58 -05:00
committed by GitHub
parent e5331a4735
commit 1d007b6e72

View File

@@ -30,21 +30,21 @@ public class A {
break;
} while (c.cond());
// --- while, for loops ---
while (c.cond()) {
if (c.cond())
continue; // GOOD [never reached, if the condition changed so it was then the result would no longer apply]
if (c.cond())
break;
}
for (i = 0; c.cond(); i++) {
if (c.cond())
continue; // GOOD [never reached, if the condition changed so it was then the result would no longer apply]
if (c.cond())
break;
}
// --- nested loops ---