/art/test/412-new-array/src/ |
D | TestCase.java | 24 public static void assertSame(Object expected, Object value) { in assertSame() argument 25 if (expected != value) { in assertSame() 27 String.valueOf(expected) + ", got " + String.valueOf(value)); in assertSame() 31 public static void assertNotSame(Object expected, Object value) { in assertNotSame() argument 32 if (expected == value) { in assertNotSame() 34 "Objects are the same: " + String.valueOf(expected)); in assertNotSame() 38 public static void assertEquals(String message, int expected, int actual) { in assertEquals() argument 39 if (expected != actual) { in assertEquals() 44 public static void assertEquals(int expected, int actual) { in assertEquals() argument 45 if (expected != actual) { in assertEquals() [all …]
|
/art/test/414-static-fields/src/ |
D | TestCase.java | 24 public static void assertSame(Object expected, Object value) { in assertSame() argument 25 if (expected != value) { in assertSame() 27 String.valueOf(expected) + ", got " + String.valueOf(value)); in assertSame() 31 public static void assertNotSame(Object expected, Object value) { in assertNotSame() argument 32 if (expected == value) { in assertNotSame() 34 "Objects are the same: " + String.valueOf(expected)); in assertNotSame() 38 public static void assertEquals(String message, int expected, int actual) { in assertEquals() argument 39 if (expected != actual) { in assertEquals() 44 public static void assertEquals(int expected, int actual) { in assertEquals() argument 45 if (expected != actual) { in assertEquals() [all …]
|
/art/test/406-fields/src/ |
D | TestCase.java | 24 public static void assertSame(Object expected, Object value) { in assertSame() argument 25 if (expected != value) { in assertSame() 27 String.valueOf(expected) + ", got " + String.valueOf(value)); in assertSame() 31 public static void assertNotSame(Object expected, Object value) { in assertNotSame() argument 32 if (expected == value) { in assertNotSame() 34 "Objects are the same: " + String.valueOf(expected)); in assertNotSame() 38 public static void assertEquals(String message, int expected, int actual) { in assertEquals() argument 39 if (expected != actual) { in assertEquals() 44 public static void assertEquals(int expected, int actual) { in assertEquals() argument 45 if (expected != actual) { in assertEquals() [all …]
|
/art/test/407-arrays/src/ |
D | TestCase.java | 24 public static void assertSame(Object expected, Object value) { in assertSame() argument 25 if (expected != value) { in assertSame() 27 String.valueOf(expected) + ", got " + String.valueOf(value)); in assertSame() 31 public static void assertNotSame(Object expected, Object value) { in assertNotSame() argument 32 if (expected == value) { in assertNotSame() 34 "Objects are the same: " + String.valueOf(expected)); in assertNotSame() 38 public static void assertEquals(String message, int expected, int actual) { in assertEquals() argument 39 if (expected != actual) { in assertEquals() 44 public static void assertEquals(int expected, int actual) { in assertEquals() argument 45 if (expected != actual) { in assertEquals() [all …]
|
/art/test/082-inline-execute/src/junit/framework/ |
D | Assert.java | 62 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument 63 if (expected == null && actual == null) in assertEquals() 65 if (expected != null && expected.equals(actual)) in assertEquals() 67 failNotEquals(message, expected, actual); in assertEquals() 73 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument 74 assertEquals(null, expected, actual); in assertEquals() 79 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument 80 if (expected == null && actual == null) in assertEquals() 82 if (expected != null && expected.equals(actual)) in assertEquals() 85 throw new ComparisonFailure(cleanMessage, expected, actual); in assertEquals() [all …]
|
/art/test/021-string2/src/junit/framework/ |
D | Assert.java | 62 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument 63 if (expected == null && actual == null) in assertEquals() 65 if (expected != null && expected.equals(actual)) in assertEquals() 67 failNotEquals(message, expected, actual); in assertEquals() 73 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument 74 assertEquals(null, expected, actual); in assertEquals() 79 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument 80 if (expected == null && actual == null) in assertEquals() 82 if (expected != null && expected.equals(actual)) in assertEquals() 85 throw new ComparisonFailure(cleanMessage, expected, actual); in assertEquals() [all …]
|
/art/test/041-narrowing/ |
D | expected.txt | 9 (byte) Double.NaN = 00 expected: 00 10 (short) Double.NaN = 0000 expected: 0000 11 (int) Double.NaN = 00000000 expected: 00000000 12 (long) Double.NaN = 0000000000000000 expected: 0000000000000000 14 (byte) Float.NaN = 00 expected: 00 15 (short) Float.NaN = 0000 expected: 0000 16 (int) Float.NaN = 00000000 expected: 00000000 17 (long) Float.NaN = 0000000000000000 expected: 0000000000000000 19 (byte) Double.POSITIVE_INFINITY = ff expected: ff 20 (short) Double.POSITIVE_INFINITY = ffff expected: ffff [all …]
|
/art/test/593-checker-boolean-2-integral-conv/src/ |
D | Main.java | 199 private static void expectEqualsByte(byte expected, byte result) { in expectEqualsByte() argument 200 if (expected != result) { in expectEqualsByte() 201 throw new Error("Expected: " + expected + ", found: " + result); in expectEqualsByte() 205 private static void expectEqualsShort(short expected, short result) { in expectEqualsShort() argument 206 if (expected != result) { in expectEqualsShort() 207 throw new Error("Expected: " + expected + ", found: " + result); in expectEqualsShort() 211 private static void expectEqualsChar(char expected, char result) { in expectEqualsChar() argument 212 if (expected != result) { in expectEqualsChar() 213 throw new Error("Expected: " + expected + ", found: " + result); in expectEqualsChar() 217 private static void expectEqualsInt(int expected, int result) { in expectEqualsInt() argument [all …]
|
/art/test/075-verification-error/ |
D | expected.txt | 1 Got expected InstantationError 2 Got expected NoSuchFieldError 3 Got expected NoSuchFieldError 4 Got expected NoSuchMethodError 5 Got expected NoSuchMethodError 6 Got expected IllegalAccessError (ifield) 7 Got expected IllegalAccessError (sfield) 8 Got expected IllegalAccessError (method) 9 Got expected IllegalAccessError (smethod) 10 Got expected IllegalAccessError (meth-class) [all …]
|
/art/compiler/optimizing/ |
D | pretty_printer_test.cc | 29 static void TestCode(const uint16_t* data, const char* expected) { in TestCode() argument 35 ASSERT_STREQ(expected, printer.str().c_str()); in TestCode() 44 const char* expected = in TEST_F() local 53 TestCode(data, expected); in TEST_F() 57 const char* expected = in TEST_F() local 73 TestCode(data, expected); in TEST_F() 77 const char* expected = in TEST_F() local 95 TestCode(data, expected); in TEST_F() 99 const char* expected = in TEST_F() local 117 TestCode(data1, expected); in TEST_F() [all …]
|
D | liveness_test.cc | 46 static void TestCode(const uint16_t* data, const char* expected) { in TestCode() argument 69 ASSERT_STREQ(expected, buffer.str().c_str()); in TestCode() 73 const char* expected = in TEST_F() local 92 TestCode(data, expected); in TEST_F() 96 const char* expected = in TEST_F() local 114 TestCode(data, expected); in TEST_F() 118 const char* expected = in TEST_F() local 143 TestCode(data, expected); in TEST_F() 157 const char* expected = in TEST_F() local 191 TestCode(data, expected); in TEST_F() [all …]
|
D | ssa_test.cc | 80 static void TestCode(const uint16_t* data, const char* expected) { in TestCode() argument 99 ASSERT_STREQ(expected, printer.str().c_str()); in TestCode() 104 const char* expected = in TEST_F() local 127 TestCode(data, expected); in TEST_F() 133 const char* expected = in TEST_F() local 158 TestCode(data, expected); in TEST_F() 164 const char* expected = in TEST_F() local 191 TestCode(data, expected); in TEST_F() 196 const char* expected = in TEST_F() local 224 TestCode(data, expected); in TEST_F() [all …]
|
D | emit_swap_mips_test.cc | 126 const char* expected = in TEST_F() local 130 DriverWrapper(moves_, expected, "TwoRegisters"); in TEST_F() 144 const char* expected = in TEST_F() local 151 DriverWrapper(moves_, expected, "TwoRegisterPairs"); in TEST_F() 165 const char* expected = in TEST_F() local 169 DriverWrapper(moves_, expected, "TwoFpuRegistersFloat"); in TEST_F() 183 const char* expected = in TEST_F() local 187 DriverWrapper(moves_, expected, "TwoFpuRegistersDouble"); in TEST_F() 201 const char* expected = in TEST_F() local 205 DriverWrapper(moves_, expected, "RegisterAndFpuRegister"); in TEST_F() [all …]
|
/art/test/529-checker-unresolved/src/ |
D | Main.java | 212 public static void expectEquals(byte expected, byte result) { in expectEquals() argument 213 if (expected != result) { in expectEquals() 214 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals() 218 public static void expectEquals(char expected, char result) { in expectEquals() argument 219 if (expected != result) { in expectEquals() 220 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals() 224 public static void expectEquals(int expected, int result) { in expectEquals() argument 225 if (expected != result) { in expectEquals() 226 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals() 230 public static void expectEquals(long expected, long result) { in expectEquals() argument [all …]
|
/art/test/631-checker-fp-abs/src/ |
D | Main.java | 135 private static void expectEquals32(int expected, int result) { in expectEquals32() argument 136 if (expected != result) { in expectEquals32() 137 throw new Error("Expected: 0x" + Integer.toHexString(expected) in expectEquals32() 143 private static void expectEqualsNaN32(int expected, int result) { in expectEqualsNaN32() argument 144 if (expected != result && (expected | SPQUIET) != result) { in expectEqualsNaN32() 145 throw new Error("Expected: 0x" + Integer.toHexString(expected) in expectEqualsNaN32() 150 private static void expectEquals64(long expected, long result) { in expectEquals64() argument 151 if (expected != result) { in expectEquals64() 152 throw new Error("Expected: 0x" + Long.toHexString(expected) in expectEquals64() 158 private static void expectEqualsNaN64(long expected, long result) { in expectEqualsNaN64() argument [all …]
|
/art/test/024-illegal-access/ |
D | expected.txt | 1 Got expected failure 1 2 Got expected failure 2 3 Got expected failure 3 4 Got expected failure 4 5 Got expected failure 5
|
/art/test/567-checker-compare/src/ |
D | Main.java | 387 int expected = 0; in testCompareBytes() local 388 if (i < j) expected = -1; in testCompareBytes() 389 else if (i > j) expected = 1; in testCompareBytes() 390 expectEquals(expected, compareBytes(i, j)); in testCompareBytes() 422 int expected = 0; in testCompareShorts() local 423 if (i < j) expected = -1; in testCompareShorts() 424 else if (i > j) expected = 1; in testCompareShorts() 425 expectEquals(expected, compareShorts(i, j)); in testCompareShorts() 445 int expected = 0; in testCompareChars() local 446 if (i < j) expected = -1; in testCompareChars() [all …]
|
/art/test/568-checker-onebit/src/ |
D | Main.java | 66 int expected = i < 29 ? 0x8 << i : 0x80000000; in main() 67 expectEquals32(expected, hi32(0xF << i)); in main() 85 long expected = i < 61 ? 0x8L << i : 0x8000000000000000L; in main() 86 expectEquals64(expected, hi64(0xFL << i)); in main() 93 private static void expectEquals32(int expected, int result) { 94 if (expected != result) { 95 throw new Error("Expected: " + expected + ", found: " + result); 98 private static void expectEquals64(long expected, long result) { 99 if (expected != result) { 100 throw new Error("Expected: " + expected + ", found: " + result);
|
/art/test/552-checker-sharpening/src/ |
D | Main.java | 19 public static void assertIntEquals(int expected, int result) { in assertIntEquals() argument 20 if (expected != result) { in assertIntEquals() 21 throw new Error("Expected: " + expected + ", found: " + result); in assertIntEquals() 25 public static void assertStringEquals(String expected, String result) { in assertStringEquals() argument 26 if (expected != null ? !expected.equals(result) : result != null) { in assertStringEquals() 27 throw new Error("Expected: " + expected + ", found: " + result); in assertStringEquals() 31 public static void assertClassEquals(Class<?> expected, Class<?> result) { in assertClassEquals() argument 32 if (expected != result) { in assertClassEquals() 33 throw new Error("Expected: " + expected + ", found: " + result); in assertClassEquals()
|
/art/test/042-new-instance/ |
D | expected.txt | 2 Got expected PackageAccess complaint 4 Got expected InstantationError 5 Cons LocalClass failed as expected 9 Cons got expected PackageAccess complaint 10 Cons got expected InstantationException 11 Cons got expected PackageAccess2 complaint
|
/art/test/020-string/ |
D | expected.txt | 5 Got expected exception 8 Got expected exception 9 Got expected exception 10 Got expected exception 11 Got expected exception 12 Got expected exception
|
/art/compiler/utils/x86/ |
D | assembler_x86_test.cc | 111 const char* expected = "mov %ebx, %eax\n"; in TEST_F() local 112 DriverStr(expected, "movl"); in TEST_F() 118 const char* expected = in TEST_F() local 122 DriverStr(expected, "movntl"); in TEST_F() 127 const char* expected = in TEST_F() local 132 DriverStr(expected, "LoadLongConstant"); in TEST_F() 150 const char* expected = in TEST_F() local 157 DriverStr(expected, "lock_cmpxchgl"); in TEST_F() 170 const char* expected = in TEST_F() local 177 DriverStr(expected, "lock_cmpxchg8b"); in TEST_F() [all …]
|
/art/test/566-checker-signum/src/ |
D | Main.java | 179 int expected = 0; in testSignInt() local 180 if (i < 0) expected = -1; in testSignInt() 181 else if (i > 0) expected = 1; in testSignInt() 182 expectEquals(expected, signInt(i)); in testSignInt() 203 int expected = 0; in testSignLong() local 204 if (i < 0) expected = -1; in testSignLong() 205 else if (i > 0) expected = 1; in testSignLong() 206 expectEquals(expected, signLong(i)); in testSignLong() 230 private static void expectEquals(int expected, int result) { in expectEquals() argument 231 if (expected != result) { in expectEquals() [all …]
|
/art/test/415-optimizing-arith-neg/src/ |
D | Main.java | 22 public static void assertEquals(int expected, int result) { in assertEquals() argument 23 if (expected != result) { in assertEquals() 24 throw new Error("Expected: " + expected + ", found: " + result); in assertEquals() 28 public static void assertEquals(long expected, long result) { in assertEquals() argument 29 if (expected != result) { in assertEquals() 30 throw new Error("Expected: " + expected + ", found: " + result); in assertEquals() 34 public static void assertEquals(float expected, float result) { in assertEquals() argument 35 if (expected != result) { in assertEquals() 36 throw new Error("Expected: " + expected + ", found: " + result); in assertEquals() 40 public static void assertEquals(String expected, float result) { in assertEquals() argument [all …]
|
/art/compiler/utils/arm/ |
D | assembler_thumb2_test.cc | 122 const char* expected = in TEST_F() local 138 DriverStr(expected, "sbfx"); in TEST_F() 158 const char* expected = in TEST_F() local 174 DriverStr(expected, "ubfx"); in TEST_F() 180 const char* expected = "vmrs APSR_nzcv, FPSCR\n"; in TEST_F() local 182 DriverStr(expected, "vmrs"); in TEST_F() 191 const char* expected = in TEST_F() local 196 DriverStr(expected, "ldrexd"); in TEST_F() 205 const char* expected = in TEST_F() local 210 DriverStr(expected, "strexd"); in TEST_F() [all …]
|