/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/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/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/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 | 32 void TestCode(const std::vector<uint16_t>& data, const char* expected); 35 void PrettyPrinterTest::TestCode(const std::vector<uint16_t>& data, const char* expected) { in TestCode() argument 39 ASSERT_STREQ(expected, printer.str().c_str()); in TestCode() 46 const char* expected = in TEST_F() local 55 TestCode(data, expected); in TEST_F() 59 const char* expected = in TEST_F() local 75 TestCode(data, expected); in TEST_F() 79 const char* expected = in TEST_F() local 97 TestCode(data, expected); in TEST_F() 101 const char* expected = in TEST_F() local [all …]
|
D | liveness_test.cc | 32 void TestCode(const std::vector<uint16_t>& data, const char* expected); 47 void LivenessTest::TestCode(const std::vector<uint16_t>& data, const char* expected) { in TestCode() argument 66 ASSERT_STREQ(expected, buffer.str().c_str()); in TestCode() 70 const char* expected = in TEST_F() local 89 TestCode(data, expected); in TEST_F() 93 const char* expected = in TEST_F() local 111 TestCode(data, expected); in TEST_F() 115 const char* expected = in TEST_F() local 140 TestCode(data, expected); in TEST_F() 154 const char* expected = in TEST_F() local [all …]
|
D | ssa_test.cc | 34 void TestCode(const std::vector<uint16_t>& data, const char* expected); 83 void SsaTest::TestCode(const std::vector<uint16_t>& data, const char* expected) { in TestCode() argument 100 ASSERT_STREQ(expected, printer.str().c_str()); in TestCode() 105 const char* expected = in TEST_F() local 128 TestCode(data, expected); in TEST_F() 134 const char* expected = in TEST_F() local 159 TestCode(data, expected); in TEST_F() 165 const char* expected = in TEST_F() local 192 TestCode(data, expected); in TEST_F() 197 const char* expected = in TEST_F() local [all …]
|
/art/libartbase/base/ |
D | utils_test.cc | 46 std::vector<std::string> expected; in TEST_F() local 48 expected.clear(); in TEST_F() 52 EXPECT_EQ(expected, actual); in TEST_F() 56 EXPECT_EQ(expected, actual); in TEST_F() 58 expected.clear(); in TEST_F() 59 expected.push_back("foo"); in TEST_F() 63 EXPECT_EQ(expected, actual); in TEST_F() 67 EXPECT_EQ(expected, actual); in TEST_F() 71 EXPECT_EQ(expected, actual); in TEST_F() 73 expected.push_back("bar"); in TEST_F() [all …]
|
/art/test/593-checker-boolean-2-integral-conv/src/ |
D | Main.java | 144 private static void expectEqualsByte(byte expected, byte result) { in expectEqualsByte() argument 145 if (expected != result) { in expectEqualsByte() 146 throw new Error("Expected: " + expected + ", found: " + result); in expectEqualsByte() 150 private static void expectEqualsShort(short expected, short result) { in expectEqualsShort() argument 151 if (expected != result) { in expectEqualsShort() 152 throw new Error("Expected: " + expected + ", found: " + result); in expectEqualsShort() 156 private static void expectEqualsChar(char expected, char result) { in expectEqualsChar() argument 157 if (expected != result) { in expectEqualsChar() 158 throw new Error("Expected: " + expected + ", found: " + result); in expectEqualsChar() 162 private static void expectEqualsInt(int expected, int result) { in expectEqualsInt() argument [all …]
|
/art/test/712-varhandle-invocations/src/ |
D | VarHandleUnitTest.java | 53 public final void assertEquals(boolean expected, boolean actual) { in assertEquals() argument 54 assertEquals(Boolean.valueOf(expected), Boolean.valueOf(actual)); in assertEquals() 57 public final void assertEquals(byte expected, byte actual) { in assertEquals() argument 58 assertEquals(Byte.valueOf(expected), Byte.valueOf(actual)); in assertEquals() 61 public final void assertEquals(char expected, char actual) { in assertEquals() argument 62 assertEquals(Character.valueOf(expected), Character.valueOf(actual)); in assertEquals() 65 public final void assertEquals(short expected, short actual) { in assertEquals() argument 66 assertEquals(Short.valueOf(expected), Short.valueOf(actual)); in assertEquals() 69 public final void assertEquals(int expected, int actual) { in assertEquals() argument 70 assertEquals(Integer.valueOf(expected), Integer.valueOf(actual)); in assertEquals() [all …]
|
/art/test/2021-InvokeStatic-Inlining/src/ |
D | Main.java | 20 public static void assertIntEquals(int expected, int result) { in assertIntEquals() argument 21 if (expected != result) { in assertIntEquals() 22 throw new Error("Expected: " + expected + ", found: " + result); in assertIntEquals() 26 public static void assertDoubleEquals(double expected, double result) { in assertDoubleEquals() argument 27 if (expected != result) { in assertDoubleEquals() 28 throw new Error("Expected: " + expected + ", found: " + result); in assertDoubleEquals() 32 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() argument 33 if (expected != result) { in assertFloatEquals() 34 throw new Error("Expected: " + expected + ", found: " + result); in assertFloatEquals() 38 public static void assertLongEquals(long expected, long result) { in assertLongEquals() argument [all …]
|
/art/test/2020-InvokeVirtual-Inlining/src/ |
D | Main.java | 20 public static void assertIntEquals(int expected, int result) { in assertIntEquals() argument 21 if (expected != result) { in assertIntEquals() 22 throw new Error("Expected: " + expected + ", found: " + result); in assertIntEquals() 26 public static void assertDoubleEquals(double expected, double result) { in assertDoubleEquals() argument 27 if (expected != result) { in assertDoubleEquals() 28 throw new Error("Expected: " + expected + ", found: " + result); in assertDoubleEquals() 32 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() argument 33 if (expected != result) { in assertFloatEquals() 34 throw new Error("Expected: " + expected + ", found: " + result); in assertFloatEquals() 38 public static void assertLongEquals(long expected, long result) { in assertLongEquals() argument [all …]
|
/art/test/631-checker-fp-abs/src/ |
D | Main.java | 141 private static void expectEquals32(int expected, int result) { in expectEquals32() argument 142 if (expected != result) { in expectEquals32() 143 throw new Error("Expected: 0x" + Integer.toHexString(expected) in expectEquals32() 149 private static void expectEqualsNaN32(int expected, int result) { in expectEqualsNaN32() argument 150 if (expected != result && (expected | SPQUIET) != result) { in expectEqualsNaN32() 154 if (expected == (result & Integer.MAX_VALUE)) { in expectEqualsNaN32() 158 throw new Error("Expected: 0x" + Integer.toHexString(expected) in expectEqualsNaN32() 163 private static void expectEquals64(long expected, long result) { in expectEquals64() argument 164 if (expected != result) { in expectEquals64() 165 throw new Error("Expected: 0x" + Long.toHexString(expected) in expectEquals64() [all …]
|
/art/test/529-checker-unresolved/src/ |
D | Main.java | 214 public static void expectEquals(byte expected, byte result) { in expectEquals() argument 215 if (expected != result) { in expectEquals() 216 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals() 220 public static void expectEquals(char expected, char result) { in expectEquals() argument 221 if (expected != result) { in expectEquals() 222 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals() 226 public static void expectEquals(int expected, int result) { in expectEquals() argument 227 if (expected != result) { in expectEquals() 228 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals() 232 public static void expectEquals(long expected, long result) { in expectEquals() argument [all …]
|
/art/test/713-varhandle-invokers/src/ |
D | Main.java | 41 private static void failAssertEquals(Object expected, Object actual) { in failAssertEquals() argument 43 sb.append(expected); in failAssertEquals() 49 private static void assertEquals(int expected, int actual) { in assertEquals() argument 50 if (expected != actual) { in assertEquals() 51 failAssertEquals(expected, actual); in assertEquals() 55 private static void assertEquals(float expected, float actual) { in assertEquals() argument 56 if (expected != actual) { in assertEquals() 57 failAssertEquals(expected, actual); in assertEquals() 61 private static void assertEquals(double expected, double actual) { in assertEquals() argument 62 if (expected != actual) { in assertEquals() [all …]
|
/art/test/711-checker-type-conversion/src/ |
D | Main.java | 19 public static void assertByteEquals(byte expected, byte result) { in assertByteEquals() argument 20 if (expected != result) { in assertByteEquals() 21 throw new Error("Expected: " + expected + ", found: " + result); in assertByteEquals() 25 public static void assertShortEquals(short expected, short result) { in assertShortEquals() argument 26 if (expected != result) { in assertShortEquals() 27 throw new Error("Expected: " + expected + ", found: " + result); in assertShortEquals() 31 public static void assertIntEquals(int expected, int result) { in assertIntEquals() argument 32 if (expected != result) { in assertIntEquals() 33 throw new Error("Expected: " + expected + ", found: " + result); in assertIntEquals() 37 public static void assertLongEquals(long expected, long result) { in assertLongEquals() argument [all …]
|
/art/test/665-checker-simd-zero/src/ |
D | Main.java | 207 private static void expectEquals(boolean expected, boolean result) { in expectEquals() argument 208 if (expected != result) { in expectEquals() 209 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals() 213 private static void expectEquals(int expected, int result) { in expectEquals() argument 214 if (expected != result) { in expectEquals() 215 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals() 219 private static void expectEquals(long expected, long result) { in expectEquals() argument 220 if (expected != result) { in expectEquals() 221 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals() 225 private static void expectEquals(float expected, float result) { in expectEquals() 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/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/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/530-checker-lse-ctor-fences/src/ |
D | Main.java | 163 static void assertIntEquals(int result, int expected) { in assertIntEquals() argument 164 if (expected != result) { in assertIntEquals() 165 throw new Error("Expected: " + expected + ", found: " + result); in assertIntEquals() 169 static void assertFloatEquals(float result, float expected) { in assertFloatEquals() argument 170 if (expected != result) { in assertFloatEquals() 171 throw new Error("Expected: " + expected + ", found: " + result); in assertFloatEquals() 175 static void assertDoubleEquals(double result, double expected) { in assertDoubleEquals() argument 176 if (expected != result) { in assertDoubleEquals() 177 throw new Error("Expected: " + expected + ", found: " + result); in assertDoubleEquals() 181 static void assertInstanceOf(Object result, Class<?> expected) { in assertInstanceOf() argument [all …]
|