A couple of unit tests

This commit is contained in:
Stiver
2014-08-09 17:34:24 +02:00
parent 3b9b180d94
commit 70bf7f3f69
7 changed files with 357 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
package unit.classes;
public class TestClassLoop {
public static void testFinally() {
boolean var0 = Math.random() > 0.0D;
while(true) {
try {
if(!var0) {
return;
}
} finally {
System.out.println("1");
}
}
}
public static void testFinallyContinue() {
boolean var0 = Math.random() > 0.0D;
while(true) {
while(true) {
try {
System.out.println("1");
break;
} finally {
if(var0) {
System.out.println("3");
continue;
}
}
}
System.out.println("4");
}
}
}