Unit tests updated
This commit is contained in:
@@ -3,6 +3,12 @@ package unit.classes;
|
||||
|
||||
public class TestClassLoop {
|
||||
|
||||
public static void testSimpleInfinite() {
|
||||
while(true) {
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
|
||||
public static void testFinally() {
|
||||
boolean var0 = Math.random() > 0.0D;
|
||||
|
||||
|
||||
16
test/unit/results/TestClassSwitch.dec
Normal file
16
test/unit/results/TestClassSwitch.dec
Normal file
@@ -0,0 +1,16 @@
|
||||
package unit.classes;
|
||||
|
||||
|
||||
public class TestClassSwitch {
|
||||
|
||||
public void testCaseOrder(int var1) {
|
||||
switch(var1) {
|
||||
case 5:
|
||||
System.out.println(5);
|
||||
default:
|
||||
return;
|
||||
case 13:
|
||||
System.out.println(13);
|
||||
}
|
||||
}
|
||||
}
|
||||
20
test/unit/results/TestClassTypes.dec
Normal file
20
test/unit/results/TestClassTypes.dec
Normal file
@@ -0,0 +1,20 @@
|
||||
package unit.classes;
|
||||
|
||||
|
||||
public class TestClassTypes {
|
||||
|
||||
public void testBoolean() {
|
||||
byte var1 = 0;
|
||||
long var2 = System.currentTimeMillis();
|
||||
if(var2 % 2L > 0L) {
|
||||
var1 = 1;
|
||||
} else if(var2 % 3L > 0L) {
|
||||
var1 = 2;
|
||||
}
|
||||
|
||||
if(var1 == 1) {
|
||||
System.out.println();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user