Skip to content

Commit a0c8965

Browse files
committed
Add a for(;;) testcase
1 parent 39eca7f commit a0c8965

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

java2python/tests/Loops.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ public void testFor() {
1313
Assert.assertEquals(b, 20);
1414
}
1515

16+
public void testDeadLoop() {
17+
int x = 0;
18+
for (;;) {
19+
x ++;
20+
if (x > 10) break;
21+
}
22+
}
23+
1624
public void testDoWhile() {
1725
int x = 0;
1826
do {

0 commit comments

Comments
 (0)