Unit tests updated
This commit is contained in:
13
test/unit/classes/TestClassFields.java
Normal file
13
test/unit/classes/TestClassFields.java
Normal file
@@ -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];
|
||||||
|
}
|
||||||
|
}
|
||||||
14
test/unit/results/TestClassFields.dec
Normal file
14
test/unit/results/TestClassFields.dec
Normal file
@@ -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];
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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) {
|
public void testAssignmentType(List var1) {
|
||||||
Object var2 = var1;
|
Object var2 = var1;
|
||||||
if(var1 != null) {
|
if(var1 != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user