summaryrefslogtreecommitdiffstats
path: root/test/unit/results
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/results')
-rw-r--r--test/unit/results/TestClassLoop.dec6
-rw-r--r--test/unit/results/TestClassSwitch.dec16
-rw-r--r--test/unit/results/TestClassTypes.dec20
3 files changed, 42 insertions, 0 deletions
diff --git a/test/unit/results/TestClassLoop.dec b/test/unit/results/TestClassLoop.dec
index 3870f83..a931148 100644
--- a/test/unit/results/TestClassLoop.dec
+++ b/test/unit/results/TestClassLoop.dec
@@ -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;
diff --git a/test/unit/results/TestClassSwitch.dec b/test/unit/results/TestClassSwitch.dec
new file mode 100644
index 0000000..386a341
--- /dev/null
+++ b/test/unit/results/TestClassSwitch.dec
@@ -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);
+ }
+ }
+}
diff --git a/test/unit/results/TestClassTypes.dec b/test/unit/results/TestClassTypes.dec
new file mode 100644
index 0000000..f4c6885
--- /dev/null
+++ b/test/unit/results/TestClassTypes.dec
@@ -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();
+ }
+
+ }
+}