diff options
author | Stiver <stiver.mail@gmail.com> | 2014-08-17 19:20:56 +0200 |
---|---|---|
committer | Stiver <stiver.mail@gmail.com> | 2014-08-17 19:20:56 +0200 |
commit | 7492715abf76cc8b97a898e8a2a02d4672c05f01 (patch) | |
tree | 31d7c17fbc5792c41b0bd36960614eb4d352f92f | |
parent | d1679b412705438598085e79476feb8da8bafd2e (diff) | |
download | fernflower-7492715abf76cc8b97a898e8a2a02d4672c05f01.tar fernflower-7492715abf76cc8b97a898e8a2a02d4672c05f01.tar.gz fernflower-7492715abf76cc8b97a898e8a2a02d4672c05f01.tar.lz fernflower-7492715abf76cc8b97a898e8a2a02d4672c05f01.tar.xz fernflower-7492715abf76cc8b97a898e8a2a02d4672c05f01.zip |
Unit tests updated
-rw-r--r-- | test/unit/classes/TestClassFields.java | 13 | ||||
-rw-r--r-- | test/unit/results/TestClassFields.dec | 14 | ||||
-rw-r--r-- | test/unit/results/TestClassTypes.dec | 19 |
3 files changed, 46 insertions, 0 deletions
diff --git a/test/unit/classes/TestClassFields.java b/test/unit/classes/TestClassFields.java new file mode 100644 index 0000000..8ae7449 --- /dev/null +++ b/test/unit/classes/TestClassFields.java @@ -0,0 +1,13 @@ +package unit.classes; + +public class TestClassFields { + + private static int[] sizes; + private static String[] names; + + static { + + names = new String[]{"name1", "name2"}; + sizes = new int[names.length]; + } +} diff --git a/test/unit/results/TestClassFields.dec b/test/unit/results/TestClassFields.dec new file mode 100644 index 0000000..85aea77 --- /dev/null +++ b/test/unit/results/TestClassFields.dec @@ -0,0 +1,14 @@ +package unit.classes; + + +public class TestClassFields { + + private static int[] sizes; + private static String[] names = new String[]{"name1", "name2"}; + + + static { + sizes = new int[names.length]; + } + +} diff --git a/test/unit/results/TestClassTypes.dec b/test/unit/results/TestClassTypes.dec index 8e3ec08..0bda616 100644 --- a/test/unit/results/TestClassTypes.dec +++ b/test/unit/results/TestClassTypes.dec @@ -20,6 +20,25 @@ public class TestClassTypes { } + public boolean testBit(int var1) { + return (var1 & 1) == 1; + } + + public void testSwitchConsts(int var1) { + switch(var1) { + case 88: + System.out.println("1"); + break; + case 656: + System.out.println("2"); + break; + case 65201: + case 65489: + System.out.println("3"); + } + + } + public void testAssignmentType(List var1) { Object var2 = var1; if(var1 != null) { |