Home
last modified time | relevance | path

Searched refs:actual (Results 1 – 25 of 2773) sorted by relevance

12345678910>>...111

/external/libbrillo/brillo/
Dvalue_conversion_unittest.cc44 #define EXPECT_JSON_EQ(expected, actual) \ argument
45 EXPECT_PRED2(IsEqualValue, *ParseValue(expected), actual)
50 int actual; in TEST() local
51 EXPECT_TRUE(FromValue(*ParseValue("123"), &actual)); in TEST()
52 EXPECT_EQ(123, actual); in TEST()
54 EXPECT_TRUE(FromValue(*ParseValue("-123"), &actual)); in TEST()
55 EXPECT_EQ(-123, actual); in TEST()
57 EXPECT_FALSE(FromValue(*ParseValue("true"), &actual)); in TEST()
61 bool actual; in TEST() local
62 EXPECT_TRUE(FromValue(*ParseValue("false"), &actual)); in TEST()
[all …]
/external/testng/src/main/java/org/testng/asserts/
DAssertion.java70 private final T actual; field in Assertion.SimpleAssert
78 public SimpleAssert(T actual, T expected) { in SimpleAssert() argument
79 this(actual, expected, null); in SimpleAssert()
82 public SimpleAssert(T actual, T expected, String message) { in SimpleAssert() argument
83 this.actual = actual; in SimpleAssert()
95 return actual; in getActual()
171 public <T> void assertEquals(final T actual, final T expected, final String message) { in assertEquals() argument
172 doAssert(new SimpleAssert<T>(actual, expected, message) { in assertEquals()
175 org.testng.Assert.assertEquals(actual, expected, message); in assertEquals()
180 public <T> void assertEquals(final T actual, final T expected) { in assertEquals() argument
[all …]
/external/testng/src/main/java/org/testng/
DAssertJUnit.java73 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument
74 if((expected == null) && (actual == null)) { in assertEquals()
77 if((expected != null) && expected.equals(actual)) { in assertEquals()
80 failNotEquals(message, expected, actual); in assertEquals()
87 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument
88 assertEquals(null, expected, actual); in assertEquals()
94 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument
95 if((expected == null) && (actual == null)) { in assertEquals()
98 if((expected != null) && expected.equals(actual)) { in assertEquals()
101 throw new AssertionError(format(message, expected, actual)); in assertEquals()
[all …]
DAssert.java111 static public void assertEquals(Object actual, Object expected, String message) { in assertEquals() argument
113 assertArrayEquals(actual, expected, message); in assertEquals()
116 assertEqualsImpl(actual, expected, message); in assertEquals()
124 private static void assertEqualsImpl(Object actual, Object expected, in assertEqualsImpl() argument
126 if((expected == null) && (actual == null)) { in assertEqualsImpl()
129 if(expected == null ^ actual == null) { in assertEqualsImpl()
130 failNotEquals(actual, expected, message); in assertEqualsImpl()
132 if (expected.equals(actual) && actual.equals(expected)) { in assertEqualsImpl()
135 failNotEquals(actual, expected, message); in assertEqualsImpl()
138 private static void assertArrayEquals(Object actual, Object expected, String message) { in assertArrayEquals() argument
[all …]
/external/junit/src/main/java/junit/framework/
DAssert.java71 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument
72 if (expected == null && actual == null) { in assertEquals()
75 if (expected != null && expected.equals(actual)) { in assertEquals()
78 failNotEquals(message, expected, actual); in assertEquals()
85 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument
86 assertEquals(null, expected, actual); in assertEquals()
92 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument
93 if (expected == null && actual == null) { in assertEquals()
96 if (expected != null && expected.equals(actual)) { in assertEquals()
100 throw new ComparisonFailure(cleanMessage, expected, actual); in assertEquals()
[all …]
DTestCase.java243 public static void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument
244 Assert.assertEquals(message, expected, actual); in assertEquals()
252 public static void assertEquals(Object expected, Object actual) { in assertEquals() argument
253 Assert.assertEquals(expected, actual); in assertEquals()
260 public static void assertEquals(String message, String expected, String actual) { in assertEquals() argument
261 Assert.assertEquals(message, expected, actual); in assertEquals()
268 public static void assertEquals(String expected, String actual) { in assertEquals() argument
269 Assert.assertEquals(expected, actual); in assertEquals()
278 public static void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() argument
279 Assert.assertEquals(message, expected, actual, delta); in assertEquals()
[all …]
/external/easymock/src/org/easymock/internal/matchers/
DArrayEquals.java31 public boolean matches(Object actual) { in matches() argument
34 && (actual == null || actual instanceof boolean[])) { in matches()
35 return Arrays.equals((boolean[]) expected, (boolean[]) actual); in matches()
37 && (actual == null || actual instanceof byte[])) { in matches()
38 return Arrays.equals((byte[]) expected, (byte[]) actual); in matches()
40 && (actual == null || actual instanceof char[])) { in matches()
41 return Arrays.equals((char[]) expected, (char[]) actual); in matches()
43 && (actual == null || actual instanceof double[])) { in matches()
44 return Arrays.equals((double[]) expected, (double[]) actual); in matches()
46 && (actual == null || actual instanceof float[])) { in matches()
[all …]
/external/junit/src/main/java/org/junit/
DAssert.java110 Object actual) { in assertEquals() argument
111 if (equalsRegardingNull(expected, actual)) { in assertEquals()
113 } else if (expected instanceof String && actual instanceof String) { in assertEquals()
116 (String) actual); in assertEquals()
118 failNotEquals(message, expected, actual); in assertEquals()
122 private static boolean equalsRegardingNull(Object expected, Object actual) { in equalsRegardingNull() argument
124 return actual == null; in equalsRegardingNull()
127 return isEquals(expected, actual); in equalsRegardingNull()
130 private static boolean isEquals(Object expected, Object actual) { in isEquals() argument
131 return expected.equals(actual); in isEquals()
[all …]
/external/Reactive-Extensions/RxCpp/Rx/v2/test/operators/
Dzip.cpp36 auto actual = res.get_observer().messages(); variable
37 REQUIRE(required == actual);
44 auto actual = n1.subscriptions(); variable
45 REQUIRE(required == actual);
52 auto actual = n2.subscriptions(); variable
53 REQUIRE(required == actual);
94 auto actual = res.get_observer().messages(); variable
95 REQUIRE(required == actual);
104 auto actual = s.subscriptions(); in __anon43e5c2a80502() local
105 REQUIRE(required == actual); in __anon43e5c2a80502()
[all …]
Damb.cpp43 auto actual = res.get_observer().messages(); variable
44 REQUIRE(required == actual);
51 auto actual = xs.subscriptions(); variable
52 REQUIRE(required == actual);
59 auto actual = ys1.subscriptions(); variable
60 REQUIRE(required == actual);
67 auto actual = ys2.subscriptions(); variable
68 REQUIRE(required == actual);
75 auto actual = ys3.subscriptions(); variable
76 REQUIRE(required == actual);
[all …]
Dwith_latest_from.cpp50 auto actual = res.get_observer().messages(); variable
51 REQUIRE(required == actual);
58 auto actual = o1.subscriptions(); variable
59 REQUIRE(required == actual);
66 auto actual = o2.subscriptions(); variable
67 REQUIRE(required == actual);
115 auto actual = res.get_observer().messages(); variable
116 REQUIRE(required == actual);
123 auto actual = o1.subscriptions(); variable
124 REQUIRE(required == actual);
[all …]
Dcombine_latest.cpp51 auto actual = res.get_observer().messages(); variable
52 REQUIRE(required == actual);
59 auto actual = o1.subscriptions(); variable
60 REQUIRE(required == actual);
67 auto actual = o2.subscriptions(); variable
68 REQUIRE(required == actual);
116 auto actual = res.get_observer().messages(); variable
117 REQUIRE(required == actual);
124 auto actual = o1.subscriptions(); variable
125 REQUIRE(required == actual);
[all …]
Dtake_until.cpp43 auto actual = res.get_observer().messages(); variable
44 REQUIRE(required == actual);
51 auto actual = xs.subscriptions(); variable
52 REQUIRE(required == actual);
59 auto actual = ys.subscriptions(); variable
60 REQUIRE(required == actual);
105 auto actual = res.get_observer().messages(); variable
106 REQUIRE(required == actual);
113 auto actual = l.subscriptions(); variable
114 REQUIRE(required == actual);
[all …]
Damb_variadic.cpp35 auto actual = res.get_observer().messages(); variable
36 REQUIRE(required == actual);
43 auto actual = ys1.subscriptions(); variable
44 REQUIRE(required == actual);
51 auto actual = ys2.subscriptions(); variable
52 REQUIRE(required == actual);
59 auto actual = ys3.subscriptions(); variable
60 REQUIRE(required == actual);
96 auto actual = res.get_observer().messages(); variable
97 REQUIRE(required == actual);
[all …]
Dskip_until.cpp42 auto actual = res.get_observer().messages(); variable
43 REQUIRE(required == actual);
50 auto actual = l.subscriptions(); variable
51 REQUIRE(required == actual);
58 auto actual = r.subscriptions(); variable
59 REQUIRE(required == actual);
102 auto actual = res.get_observer().messages(); variable
103 REQUIRE(required == actual);
110 auto actual = l.subscriptions(); variable
111 REQUIRE(required == actual);
[all …]
Dswitch_if_empty.cpp36 auto actual = res.get_observer().messages(); variable
37 REQUIRE(required == actual);
44 auto actual = xs.subscriptions(); variable
45 REQUIRE(required == actual);
50 auto actual = ys.subscriptions(); variable
51 REQUIRE(required == actual);
89 auto actual = res.get_observer().messages(); variable
90 REQUIRE(required == actual);
97 auto actual = xs.subscriptions(); variable
98 REQUIRE(required == actual);
[all …]
Dsequence_equal.cpp35 auto actual = res.get_observer().messages(); variable
36 REQUIRE(required == actual);
43 auto actual = xs.subscriptions(); variable
44 REQUIRE(required == actual);
81 auto actual = res.get_observer().messages(); variable
82 REQUIRE(required == actual);
89 auto actual = xs.subscriptions(); variable
90 REQUIRE(required == actual);
122 auto actual = res.get_observer().messages(); variable
123 REQUIRE(required == actual);
[all …]
Dreduce.cpp44 auto actual = res.get_observer().messages(); variable
45 REQUIRE(required == actual);
52 auto actual = xs.subscriptions(); variable
53 REQUIRE(required == actual);
99 auto actual = res.get_observer().messages(); variable
100 REQUIRE(required == actual);
107 auto actual = xs.subscriptions(); variable
108 REQUIRE(required == actual);
142 auto actual = res.get_observer().messages(); variable
143 REQUIRE(required == actual);
[all …]
Ddistinct.cpp27 auto actual = res.get_observer().messages(); variable
28 REQUIRE(required == actual);
35 auto actual = xs.subscriptions(); variable
36 REQUIRE(required == actual);
67 auto actual = res.get_observer().messages(); variable
68 REQUIRE(required == actual);
75 auto actual = xs.subscriptions(); variable
76 REQUIRE(required == actual);
110 auto actual = res.get_observer().messages(); variable
111 REQUIRE(required == actual);
[all …]
Ddistinct_until_changed.cpp24 auto actual = res.get_observer().messages(); variable
25 REQUIRE(required == actual);
32 auto actual = xs.subscriptions(); variable
33 REQUIRE(required == actual);
62 auto actual = res.get_observer().messages(); variable
63 REQUIRE(required == actual);
70 auto actual = xs.subscriptions(); variable
71 REQUIRE(required == actual);
103 auto actual = res.get_observer().messages(); variable
104 REQUIRE(required == actual);
[all …]
/external/tensorflow/tensorflow/compiler/xla/tests/
Dliteral_test_util.h49 const Shape& expected, const Shape& actual) TF_MUST_USE_RESULT;
54 const Shape& expected, const Shape& actual) TF_MUST_USE_RESULT;
57 const LiteralSlice& actual)
62 static void ExpectR0Equal(NativeT expected, const LiteralSlice& actual);
66 const LiteralSlice& actual);
70 const LiteralSlice& actual);
77 const LiteralSlice& actual);
82 const LiteralSlice& actual);
85 const LiteralSlice& actual);
88 const LiteralSlice& actual);
[all …]
/external/mockito/src/main/java/org/mockito/internal/matchers/
DArrayEquals.java17 public boolean matches(Object actual) { in matches() argument
19 if (wanted == null || actual == null) { in matches()
20 return super.matches(actual); in matches()
21 } else if (wanted instanceof boolean[] && actual instanceof boolean[]) { in matches()
22 return Arrays.equals((boolean[]) wanted, (boolean[]) actual); in matches()
23 } else if (wanted instanceof byte[] && actual instanceof byte[]) { in matches()
24 return Arrays.equals((byte[]) wanted, (byte[]) actual); in matches()
25 } else if (wanted instanceof char[] && actual instanceof char[]) { in matches()
26 return Arrays.equals((char[]) wanted, (char[]) actual); in matches()
27 } else if (wanted instanceof double[] && actual instanceof double[]) { in matches()
[all …]
/external/testng/src/test/java/org/testng/
DAssertTest.java20 Object[] actual= null; in nullObjectArrayAssertEquals() local
21 Assert.assertEquals(actual, expected); in nullObjectArrayAssertEquals()
27 Object[] actual= null; in nullObjectArrayAssertNoOrder() local
28 Assert.assertEqualsNoOrder(actual, expected); in nullObjectArrayAssertNoOrder()
34 Collection actual = null; in nullCollectionAssertEquals() local
35 Assert.assertEquals(actual, expected); in nullCollectionAssertEquals()
41 Set actual = null; in nullSetAssertEquals() local
42 Assert.assertEquals(actual, expected); in nullSetAssertEquals()
48 Map actual = null; in nullMapAssertEquals() local
49 Assert.assertEquals(actual, expected); in nullMapAssertEquals()
[all …]
/external/pdfium/core/fdrm/
Dfx_crypt_unittest.cpp38 std::string actual = CryptToBase16(kData); in TEST() local
41 EXPECT_EQ(expected, actual); in TEST()
133 std::string actual = CRYPT_MD5String(""); in TEST() local
135 EXPECT_EQ(expected, actual); in TEST()
139 std::string actual = CRYPT_MD5String("a"); in TEST() local
141 EXPECT_EQ(expected, actual); in TEST()
145 std::string actual = CRYPT_MD5String("abc"); in TEST() local
147 EXPECT_EQ(expected, actual); in TEST()
151 std::string actual = CRYPT_MD5String("message digest"); in TEST() local
153 EXPECT_EQ(expected, actual); in TEST()
[all …]
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/io/
DFileMatchers.java41 @Override protected Long featureValueOf(File actual) { return actual.length(); } in aFileWithSize()
47 @Override protected String featureValueOf(File actual) { return actual.getName(); }
53 @Override protected String featureValueOf(File actual) {
55 return actual.getCanonicalPath();
65 … @Override protected String featureValueOf(File actual) { return actual.getAbsolutePath(); }
70 boolean check(File actual);
74 @Override public boolean check(File actual) { return actual.canWrite(); }
77 @Override public boolean check(File actual) { return actual.canRead(); }
81 @Override public boolean check(File actual) { return actual.isFile(); }
85 @Override public boolean check(File actual) { return actual.isDirectory(); }
[all …]

12345678910>>...111