Lines Matching refs:result
25 public static void expectEquals(long expected, long result) { in expectEquals() argument
26 if (expected != result) { in expectEquals()
27 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals()
31 public static void expectEquals(int expected, int result) { in expectEquals() argument
32 if (expected != result) { in expectEquals()
33 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals()
38 int result = 0; in test_int() local
47 result += i*i; in test_int()
48 result = i - tmp; in test_int()
50 expectEquals(result, -891); in test_int()
52 result = c*c + (result - c); in test_int()
53 expectEquals(result, -801); in test_int()
55 result = a + a*a; in test_int()
56 expectEquals(result, -2147483648); in test_int()
58 result = b + b*b; in test_int()
59 expectEquals(result, -2147483648); in test_int()
61 result = b - a*a; in test_int()
62 expectEquals(result, 2147483647); in test_int()
64 result = d*d; in test_int()
66 result += result; in test_int()
67 expectEquals(result, 200); in test_int()
69 result = c*c; in test_int()
71 result += result; in test_int()
72 expectEquals(result, 200); in test_int()
74 result = 0; in test_int()
76 result = c*c; in test_int()
78 result += d; in test_int()
81 expectEquals(result, 100); in test_int()
84 result = a*c + obj.ia; in test_int()
85 expectEquals(result, 2); in test_int()
87 result = 0; in test_int()
90 result = a*c; in test_int()
92 result = result + tmp; in test_int()
95 expectEquals(result, -10); in test_int()
99 long result = 0; in test_long() local
108 result += i*i; in test_long()
109 result = i - tmp; in test_long()
111 expectEquals(result, -891L); in test_long()
113 result = c*c + (result - c); in test_long()
114 expectEquals(result, -801L); in test_long()
116 result = a + a*a; in test_long()
117 expectEquals(result, -9223372036854775808L); in test_long()
119 result = b + b*b; in test_long()
120 expectEquals(result, -9223372036854775808L); in test_long()
122 result = b - a*a; in test_long()
123 expectEquals(result, 9223372036854775807L); in test_long()
125 result = d*d; in test_long()
127 result += result; in test_long()
128 expectEquals(result, 200L); in test_long()
130 result = c*c; in test_long()
132 result += result; in test_long()
133 expectEquals(result, 200L); in test_long()
135 result = 0; in test_long()
138 result = c*c; in test_long()
140 result += d; in test_long()
143 expectEquals(result, 100L); in test_long()
146 result = a*c + obj.la; in test_long()
147 expectEquals(result, 113L); in test_long()
149 result = 0; in test_long()
152 result = a*c; in test_long()
154 result = result + tmp; in test_long()
157 expectEquals(result, -10L); in test_long()