blob: 5018e992dd1df31e9d21f2875fe7d171b7dc82ae (
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
|
import org.aspectj.testing.*;
public class ArrayMethod {
public static void main(String[] args) {
new ArrayMethod().go();
Tester.check(true, "compiled");
}
void go() {
try {
int[] array1 = array1();
int[] array2 = array2();
for (int i = 0; i < array1.length; i++) {
Tester.checkEqual(array1[i],i);
Tester.checkEqual(array2[i],i);
}
} catch (Exception e) {
}
}
int array1()[] throws Exception {
return new int[] {0,1,2};
}
int[] array2() throws Exception {
return new int[] {0,1,2};
}
}
|