Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 1042) sorted by relevance

12345678910>>...42

/art/test/407-arrays/src/
DTestCase.java24 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/
DTestCase.java24 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/
DTestCase.java24 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/
DTestCase.java24 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/
DAssert.java62 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/
DAssert.java62 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/
Dexpected-stdout.txt9 (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/
Dexpected-stdout.txt1 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/
Dpretty_printer_test.cc32 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 …]
Dliveness_test.cc32 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
68 ASSERT_STREQ(expected, buffer.str().c_str()); in TestCode()
72 const char* expected = in TEST_F() local
91 TestCode(data, expected); in TEST_F()
95 const char* expected = in TEST_F() local
113 TestCode(data, expected); in TEST_F()
117 const char* expected = in TEST_F() local
142 TestCode(data, expected); in TEST_F()
156 const char* expected = in TEST_F() local
[all …]
Dssa_test.cc34 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/test/593-checker-boolean-2-integral-conv/src/
DMain.java144 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/
DVarHandleUnitTest.java53 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/
DMain.java20 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/
DMain.java20 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/723-string-init-range/src/
DMain.java21 static String expected = "Hello"; field in Main
25 String result = (String)m.invoke(null, expected); in main()
26 if (!expected.equals(result)) { in main()
27 throw new Error("Expected '" + expected + "', got " + result); in main()
31 byte[] byteArray = expected.getBytes(); in main()
33 if (!expected.equals(result)) { in main()
34 throw new Error("Expected '" + expected + "', got " + result); in main()
38 result = (String)m.invoke(null, expected); in main()
39 if (!expected.equals(result)) { in main()
40 throw new Error("Expected '" + expected + "', got " + result); in main()
/art/test/567-checker-builder-intrinsics/src/
DTestFpAbs.java135 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()
148 if (expected == (result & Integer.MAX_VALUE)) { in expectEqualsNaN32()
152 throw new Error("Expected: 0x" + Integer.toHexString(expected) in expectEqualsNaN32()
157 private static void expectEquals64(long expected, long result) { in expectEquals64() argument
158 if (expected != result) { in expectEquals64()
159 throw new Error("Expected: 0x" + Long.toHexString(expected) in expectEquals64()
[all …]
/art/test/529-checker-unresolved/src/
DMain.java214 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/
DMain.java41 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/
DMain.java19 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/libartbase/base/
Dutils_test.cc52 std::vector<std::string_view> expected; in TEST_F() local
54 expected.clear(); in TEST_F()
58 EXPECT_EQ(expected, actual); in TEST_F()
62 EXPECT_EQ(expected, actual); in TEST_F()
64 expected.clear(); in TEST_F()
65 expected.push_back("foo"); in TEST_F()
69 EXPECT_EQ(expected, actual); in TEST_F()
73 EXPECT_EQ(expected, actual); in TEST_F()
77 EXPECT_EQ(expected, actual); in TEST_F()
79 expected.push_back("bar"); in TEST_F()
[all …]
/art/odrefresh/
Dodr_metrics_record_test.cc31 const OdrMetricsRecord expected { in TEST_F() local
48 ofs << expected; in TEST_F()
60 ASSERT_EQ(expected.art_apex_version, actual.art_apex_version); in TEST_F()
61 ASSERT_EQ(expected.trigger, actual.trigger); in TEST_F()
62 ASSERT_EQ(expected.stage_reached, actual.stage_reached); in TEST_F()
63 ASSERT_EQ(expected.status, actual.status); in TEST_F()
64 ASSERT_EQ(expected.primary_bcp_compilation_seconds, actual.primary_bcp_compilation_seconds); in TEST_F()
65 ASSERT_EQ(expected.secondary_bcp_compilation_seconds, actual.secondary_bcp_compilation_seconds); in TEST_F()
66 ASSERT_EQ(expected.system_server_compilation_seconds, actual.system_server_compilation_seconds); in TEST_F()
67 ASSERT_EQ(expected.cache_space_free_start_mib, actual.cache_space_free_start_mib); in TEST_F()
[all …]
/art/test/665-checker-simd-zero/src/
DMain.java287 private static void expectEquals(boolean expected, boolean result) { in expectEquals() argument
288 if (expected != result) { in expectEquals()
289 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals()
293 private static void expectEquals(int expected, int result) { in expectEquals() argument
294 if (expected != result) { in expectEquals()
295 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals()
299 private static void expectEquals(long expected, long result) { in expectEquals() argument
300 if (expected != result) { in expectEquals()
301 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals()
305 private static void expectEquals(float expected, float result) { in expectEquals() argument
[all …]
/art/test/530-checker-lse-ctor-fences/src/
DMain.java161 static void assertIntEquals(int result, int expected) { in assertIntEquals() argument
162 if (expected != result) { in assertIntEquals()
163 throw new Error("Expected: " + expected + ", found: " + result); in assertIntEquals()
167 static void assertFloatEquals(float result, float expected) { in assertFloatEquals() argument
168 if (expected != result) { in assertFloatEquals()
169 throw new Error("Expected: " + expected + ", found: " + result); in assertFloatEquals()
173 static void assertDoubleEquals(double result, double expected) { in assertDoubleEquals() argument
174 if (expected != result) { in assertDoubleEquals()
175 throw new Error("Expected: " + expected + ", found: " + result); in assertDoubleEquals()
179 static void assertInstanceOf(Object result, Class<?> expected) { in assertInstanceOf() argument
[all …]
/art/test/727-checker-unresolved-class/src-ex/resolved/
DPublicSubclassOfUnresolvedClass2.java72 } catch (NoClassDefFoundError expected) {} in $noinline$testInlinedReferrersClassFromSamePackage()
87 } catch (IllegalAccessError expected) {} in $noinline$testResolvedPackagePrivateClass()
99 } catch (IllegalAccessError expected) {} in $noinline$testPublicFieldInResolvedPackagePrivateClass()
120 } catch (IllegalAccessError expected) {} in $noinline$testPrivateFieldInResolvedPackagePrivateClass()
132 } catch (IllegalAccessError expected) {} in $noinline$testPrivateFieldInPackagePrivateClassViaResolvedPublicSubclass()
144 } catch (IllegalAccessError expected) {} in $noinline$testPackagePrivateFieldInResolvedPackagePrivateClass()
156 } catch (IllegalAccessError expected) {} in $noinline$testPackagePrivateFieldInPackagePrivateClassViaResolvedPublicSubclass()
168 } catch (IllegalAccessError expected) {} in $noinline$testPublicMethodInResolvedPackagePrivateClass()
189 } catch (IllegalAccessError expected) {} in $noinline$testPrivateMethodInResolvedPackagePrivateClass()
201 } catch (IllegalAccessError expected) {} in $noinline$testPrivateMethodInPackagePrivateClassViaResolvedPublicSubclass()
[all …]

12345678910>>...42