Lines Matching refs:result
24 int result = (Integer)m.invoke(null, 0x12345678); in main() local
25 if (result != (0x78 + 0x78)) { in main()
26 throw new Error("Expected 240, got " + result); in main()
29 result = (Integer)m.invoke(null, 0xdeadbeef); in main()
30 if (result != 0xdeadbeef) { in main()
31 throw new Error("Expected 0xdeadbeef, got " + result); in main()
45 result = (Integer)m.invoke(null, 300); in main()
46 assertIntEquals(result, 300); in main()
47 result = (Integer)m.invoke(null, 301); in main()
48 assertIntEquals(result, 90); in main()
51 result = (Integer)m.invoke(null, 5); in main()
52 assertIntEquals(result, 5); in main()
53 result = (Integer)m.invoke(null, 10); in main()
54 assertIntEquals(result, 10); in main()
57 private static void assertIntEquals(int result, int expected) { in assertIntEquals() argument
58 if (result != expected) { in assertIntEquals()
59 throw new Error("Expected " + expected + ", got " + result); in assertIntEquals()