blob: 6bf12afd8166eef44d5963422ec7e6bd77e1102a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import org.aspectj.testing.*;
public class PR417b {
public static class StaticTypes {
public static Integer INT = new Integer(3);
public static int i = 0;
public static byte b = (byte)1;
public static long l = 2L;
public static double d = (double)3;
public static float f = (float)4;
public static short s = (short)5;
public static char c = 'c';
}
public static void main (String[] args) {
new PR417b().run();
}
public void run() {
Tester.check(StaticTypes.INT.equals(new Integer(3)), "INT != 3");
Tester.checkEqual(StaticTypes.i,0);
Tester.checkEqual((int)StaticTypes.b,1);
Tester.checkEqual((int)StaticTypes.l,2);
Tester.checkEqual((int)StaticTypes.d,3);
Tester.checkEqual((int)StaticTypes.f,4);
Tester.checkEqual((int)StaticTypes.s,5);
Tester.checkEqual(StaticTypes.c,'c');
}
}
|