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,44 @@
package unit.classes;
public class TestClassVar {
private boolean field_boolean = (Math.random() > 0);
public int field_int = 0;
public void testFieldSSAU() {
for(int i = 0; i < 10; i++) {
try {
System.out.println();
} finally {
if (field_boolean) {
System.out.println();
}
}
}
}
public Long testFieldSSAU1() { // IDEA-127466
return new Long(field_int++);
}
public void testComplexPropagation() {
int a = 0;
while (a < 10) {
int b = a;
for(; a < 10 && a == 0; a++) {}
if (b != a) {
System.out.println();
}
}
}
}