Home
last modified time | relevance | path

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

12345678910>>...27

/external/junit/src/junit/framework/
DAssert.java59 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument
60 if (expected == null && actual == null) in assertEquals()
62 if (expected != null && expected.equals(actual)) in assertEquals()
64 failNotEquals(message, expected, actual); in assertEquals()
70 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument
71 assertEquals(null, expected, actual); in assertEquals()
76 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument
77 if (expected == null && actual == null) in assertEquals()
79 if (expected != null && expected.equals(actual)) in assertEquals()
81 throw new ComparisonFailure(message, expected, actual); in assertEquals()
[all …]
/external/v8/test/mjsunit/
Dstring-split.js28 expected = ["A", undefined, "B", "bold", "/", "B", "and", undefined, "CODE", "coded", "/", "CODE", …
30 assertArrayEquals(expected, result, 1);
32 expected = ["a", "b"];
34 assertArrayEquals(expected, result, 2);
36 expected = ["", "b"];
38 assertArrayEquals(expected, result, 3);
40 expected = ["a"];
42 assertArrayEquals(expected, result, 4);
44 expected = [""];
46 assertArrayEquals(expected, result, 5);
[all …]
/external/chromium/base/
Dlinked_list_unittest.cc81 const int expected[] = {1}; in TEST() local
82 ExpectListContents(list, arraysize(expected), expected); in TEST()
91 const int expected[] = {1, 2}; in TEST() local
92 ExpectListContents(list, arraysize(expected), expected); in TEST()
101 const int expected[] = {1, 2, 3}; in TEST() local
102 ExpectListContents(list, arraysize(expected), expected); in TEST()
124 const int expected[] = {1, 2, 3, 4, 5}; in TEST() local
125 ExpectListContents(list, arraysize(expected), expected); in TEST()
134 const int expected[] = {1, 2, 4, 5}; in TEST() local
135 ExpectListContents(list, arraysize(expected), expected); in TEST()
[all …]
/external/easymock/src/org/easymock/internal/matchers/
DArrayEquals.java26 public ArrayEquals(Object expected) { in ArrayEquals() argument
27 super(expected); in ArrayEquals()
32 Object expected = getExpected(); in matches() local
33 if (expected instanceof boolean[] in matches()
35 return Arrays.equals((boolean[]) expected, (boolean[]) actual); in matches()
36 } else if (expected instanceof byte[] in matches()
38 return Arrays.equals((byte[]) expected, (byte[]) actual); in matches()
39 } else if (expected instanceof char[] in matches()
41 return Arrays.equals((char[]) expected, (char[]) actual); in matches()
42 } else if (expected instanceof double[] in matches()
[all …]
DEquals.java27 private final Object expected; field in Equals
29 public Equals(Object expected) { in Equals() argument
30 this.expected = expected; in Equals()
34 if (this.expected == null) { in matches()
37 return expected.equals(actual); in matches()
41 ArgumentToString.appendArgument(expected, buffer); in appendTo()
45 return expected; in getExpected()
53 return this.expected == null && other.expected == null in equals()
54 || this.expected != null in equals()
55 && this.expected.equals(other.expected); in equals()
/external/v8/src/
Dchecks.h74 const char* expected_source, int expected, in CheckEqualsHelper() argument
76 if (expected != value) { in CheckEqualsHelper()
79 expected_source, value_source, expected, value); in CheckEqualsHelper()
87 int64_t expected, in CheckEqualsHelper() argument
90 if (expected != value) { in CheckEqualsHelper()
97 static_cast<uint32_t>(expected >> 32), in CheckEqualsHelper()
98 static_cast<uint32_t>(expected), in CheckEqualsHelper()
125 const char* expected, in CheckEqualsHelper() argument
128 if ((expected == NULL && value != NULL) || in CheckEqualsHelper()
129 (expected != NULL && value == NULL) || in CheckEqualsHelper()
[all …]
/external/chromium/third_party/icu/source/test/cintltst/
Dncnvtst.c142 const uint8_t expected[] = {0x31, 0x1a, 0x32}; in TestSurrogateBehaviour() local
147 expected, sizeof(expected), "ibm-920", 0 , TRUE, U_ZERO_ERROR)) in TestSurrogateBehaviour()
153 expected, sizeof(expected), "LATIN_1", 0, TRUE, U_ZERO_ERROR )) in TestSurrogateBehaviour()
162 const uint8_t expected[] = {0xa2, 0xae, 0xa1, 0xe0, 0xa2, 0xb4}; in TestSurrogateBehaviour() local
167 expected, sizeof(expected), "ibm-1363", 0 , TRUE, U_ZERO_ERROR)) in TestSurrogateBehaviour()
170 expected, sizeof(expected), "ibm-1363", offsets , TRUE, U_ZERO_ERROR)) in TestSurrogateBehaviour()
174 expected, sizeof(expected), "ibm-1363", 0 , TRUE, U_ZERO_ERROR)) in TestSurrogateBehaviour()
177 expected, sizeof(expected), "ibm-1363", offsets, TRUE, U_ZERO_ERROR)) in TestSurrogateBehaviour()
185 const uint8_t expected[] = {0x1b, 0x24, 0x42,0x30,0x6c,0x43,0x7a,0x1b,0x28,0x42, in TestSurrogateBehaviour() local
193 expected, sizeof(expected), "iso-2022-jp", 0 , TRUE, U_ZERO_ERROR)) in TestSurrogateBehaviour()
[all …]
Dstdnmtst.c38 static int dotestname(const char *name, const char *standard, const char *expected) { in dotestname() argument
46 if (!tag && expected) { in dotestname()
49 } else if (expected && (name == tag || uprv_strcmp(expected, tag))) { in dotestname()
50 … log_err("FAIL: expected %s for %s standard name for %s, got %s\n", expected, standard, name, tag); in dotestname()
114 static int dotestconv(const char *name, const char *standard, const char *expected) { in dotestconv() argument
122 if (tag && !expected) { in dotestconv()
126 else if (!tag && expected) { in dotestconv()
130 else if (expected && (name == tag || uprv_strcmp(expected, tag) != 0)) { in dotestconv()
131 …log_err("FAIL: expected %s for %s canonical name for %s, got %s\n", expected, standard, name, tag); in dotestconv()
135 log_verbose("PASS: (\"%s\", \"%s\") -> %s == %s \n", name, standard, tag, expected); in dotestconv()
[all …]
/external/webkit/WebKitTools/Scripts/
Dextract-localizable-strings117 my $expected = "";
144 if ($expected and $expected ne "a quoted string") {
145 print "$file:$.:ERROR:found a quoted string but expected $expected\n";
147 $expected = "";
166 if ($expected) {
170 $expected = ",";
174 $expected = ",";
178 $expected = ")";
225 if ($expected and $expected ne $token) {
226 print "$file:$.:ERROR:found $token but expected $expected\n";
[all …]
/external/chromium/sdch/open-vcdiff/src/gtest/
Dgtest.h621 const T1& expected, in CmpHelperEQ() argument
623 if (expected == actual) { in CmpHelperEQ()
629 FormatForComparisonFailureMessage(expected, actual), in CmpHelperEQ()
630 FormatForComparisonFailureMessage(actual, expected), in CmpHelperEQ()
639 BiggestInt expected,
653 const T1& expected, in Compare() argument
655 return CmpHelperEQ(expected_expression, actual_expression, expected, in Compare()
667 BiggestInt expected, in Compare() argument
669 return CmpHelperEQ(expected_expression, actual_expression, expected, in Compare()
686 const T1& expected, in Compare() argument
[all …]
/external/icu4c/test/cintltst/
Dncnvtst.c142 const uint8_t expected[] = {0x31, 0x1a, 0x32}; in TestSurrogateBehaviour() local
147 expected, sizeof(expected), "ibm-920", 0 , TRUE, U_ZERO_ERROR)) in TestSurrogateBehaviour()
153 expected, sizeof(expected), "LATIN_1", 0, TRUE, U_ZERO_ERROR )) in TestSurrogateBehaviour()
162 const uint8_t expected[] = {0xa2, 0xae, 0xa1, 0xe0, 0xa2, 0xb4}; in TestSurrogateBehaviour() local
167 expected, sizeof(expected), "ibm-1363", 0 , TRUE, U_ZERO_ERROR)) in TestSurrogateBehaviour()
170 expected, sizeof(expected), "ibm-1363", offsets , TRUE, U_ZERO_ERROR)) in TestSurrogateBehaviour()
174 expected, sizeof(expected), "ibm-1363", 0 , TRUE, U_ZERO_ERROR)) in TestSurrogateBehaviour()
177 expected, sizeof(expected), "ibm-1363", offsets, TRUE, U_ZERO_ERROR)) in TestSurrogateBehaviour()
270 static const uint8_t expected[] = {0x7E, 0x7B, 0x52, 0x3B, in TestSurrogateBehaviour() local
287 expected, sizeof(expected), "HZ", 0 , TRUE, U_ZERO_ERROR)) in TestSurrogateBehaviour()
[all …]
Dstdnmtst.c38 static int dotestname(const char *name, const char *standard, const char *expected) { in dotestname() argument
46 if (!tag && expected) { in dotestname()
49 } else if (expected && (name == tag || uprv_strcmp(expected, tag))) { in dotestname()
50 … log_err("FAIL: expected %s for %s standard name for %s, got %s\n", expected, standard, name, tag); in dotestname()
114 static int dotestconv(const char *name, const char *standard, const char *expected) { in dotestconv() argument
122 if (tag && !expected) { in dotestconv()
126 else if (!tag && expected) { in dotestconv()
130 else if (expected && (name == tag || uprv_strcmp(expected, tag) != 0)) { in dotestconv()
131 …log_err("FAIL: expected %s for %s canonical name for %s, got %s\n", expected, standard, name, tag); in dotestconv()
135 log_verbose("PASS: (\"%s\", \"%s\") -> %s == %s \n", name, standard, tag, expected); in dotestconv()
[all …]
/external/bluetooth/glib/tests/
Dregex-test.c179 gboolean expected) in test_match_simple() argument
186 if (match != expected) in test_match_simple()
198 #define TEST_MATCH_SIMPLE(pattern, string, compile_opts, match_opts, expected) { \ argument
200 if (test_match_simple (pattern, string, compile_opts, match_opts, expected)) \
214 gboolean expected) in test_match() argument
225 if (match != expected) in test_match()
239 if (match != expected) in test_match()
255 string_len, start_position, match_opts2, expected) { \ argument
258 string_len, start_position, match_opts2, expected)) \
292 GSList *expected = NULL; in test_match_next() local
[all …]
Dmarkup-escape-test.c9 const gchar *expected, ...) G_GNUC_PRINTF (1, 3);
15 const gchar *expected) in test() argument
19 if (strcmp (result, expected) != 0) in test()
22 expected, result); in test()
34 gchar outbuf[7], expected[12]; in test_unichar() local
40 g_snprintf (expected, 12, "&#x%x;", c); in test_unichar()
42 strcpy (expected, outbuf); in test_unichar()
44 test (outbuf, expected); in test_unichar()
49 const gchar *expected, in test_format() argument
56 va_start (args, expected); in test_format()
[all …]
/external/webkit/WebCore/
DChangeLog-2005-12-19206 * fast/js/Plug-ins-expected.checksum: Added.
207 * fast/js/Plug-ins-expected.png: Added.
208 * fast/js/Plug-ins-expected.txt: Added.
2484 positioning/leftmargin-topmargin-expected.txt
8748 * dom/xhtml/level2/html/HTMLBaseElement02-expected.txt:
8749 * dom/xhtml/level2/html/frame-expected.txt:
8750 * fast/frames/calculate-fixed-expected.txt: Added.
8752 * fast/frames/calculate-order-expected.txt: Added.
8754 * fast/frames/calculate-percentage-expected.txt: Added.
8756 * fast/frames/calculate-relative-expected.txt: Added.
[all …]
/external/gtest/include/gtest/
Dgtest.h657 const T1& expected, in CmpHelperEQ() argument
665 if (expected == actual) { in CmpHelperEQ()
675 FormatForComparisonFailureMessage(expected, actual), in CmpHelperEQ()
676 FormatForComparisonFailureMessage(actual, expected), in CmpHelperEQ()
685 BiggestInt expected,
699 const T1& expected, in Compare() argument
701 return CmpHelperEQ(expected_expression, actual_expression, expected, in Compare()
713 BiggestInt expected, in Compare() argument
715 return CmpHelperEQ(expected_expression, actual_expression, expected, in Compare()
732 const T1& expected, in Compare() argument
[all …]
/external/webkit/LayoutTests/fast/js/resources/
Djs-test-pre.js125 function shouldEvaluateTo(actual, expected) { argument
129 if (expected == null) {
132 } else if (typeof expected == "undefined") {
134 } else if (typeof expected == "function") {
143 "'" + expected.toString().replace(/\n/g, "") + "'");
144 } else if (typeof expected == "object") {
145 shouldBeTrue(actual + " == '" + expected + "'");
146 } else if (typeof expected == "string") {
147 shouldBe(actual, expected);
148 } else if (typeof expected == "boolean") {
[all …]
/external/chromium/third_party/icu/source/test/intltest/
Dcallimts.cpp211 int32_t expected; in doTheoreticalLimitsTest() local
213 expected = maxM*maxDOM; in doTheoreticalLimitsTest()
214 if (maxDOY > expected) { in doTheoreticalLimitsTest()
216 + maxDOY + "/expected: <=" + expected); in doTheoreticalLimitsTest()
218 expected = lmaxM*lmaxDOM; in doTheoreticalLimitsTest()
219 if (lmaxDOW < expected) { in doTheoreticalLimitsTest()
221 + lmaxDOW + "/expected: >=" + expected); in doTheoreticalLimitsTest()
226 expected = maxDOY/nDOW + 1; in doTheoreticalLimitsTest()
227 if (maxWOY > expected) { in doTheoreticalLimitsTest()
229 + maxWOY + "/expected: <=" + expected); in doTheoreticalLimitsTest()
[all …]
Dtestidna.cpp240 UErrorCode expected; member
450 void TestIDNA::testAPI(const UChar* src, const UChar* expected, const char* testName, in testAPI() argument
458 int32_t expectedLen = (expected != NULL) ? u_strlen(expected) : 0; in testAPI()
478 …ASCII_RULES_ERROR&& (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&st… in testAPI()
480 + prettify(UnicodeString(expected,expectedLen)) in testAPI()
508 …_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&st… in testAPI()
512 … " with both options set. Expected: "+ prettify(UnicodeString(expected,expectedLen))+ in testAPI()
543 …if(U_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0… in testAPI()
570 …_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&st… in testAPI()
597 …_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&st… in testAPI()
[all …]
/external/embunit/inc/
DAssertImpl.h44 void assertImplementationInt(int expected,int actual, long line, const char *file);
45 void assertImplementationCStr(const char *expected,const char *actual, long line, const char *file);
47 #define TEST_ASSERT_EQUAL_STRING(expected,actual)\ argument
48 …if (expected && actual && (stdimpl_strcmp(expected,actual)==0)) {} else {assertImplementationCStr(
50 #define TEST_ASSERT_EQUAL_INT(expected,actual)\ argument
51 …if (expected == actual) {} else {assertImplementationInt(expected,actual,__LINE__,__FILE__);return…
/external/bluetooth/glib/gio/xdgmime/
Dtest-mime.c61 int expected) in test_alias() argument
67 if (actual != expected) in test_alias()
89 int expected) in test_subclass() argument
95 if (actual != expected) in test_subclass()
120 test_one_match (const char *filename, const char *expected) in test_one_match() argument
126 if (strcmp (actual, expected) != 0) in test_one_match()
129 filename, actual, expected); in test_one_match()
150 test_one_icon (const char *mimetype, const char *expected) in test_one_icon() argument
156 if (actual != expected && strcmp (actual, expected) != 0) in test_one_icon()
159 mimetype, actual, expected); in test_one_icon()
/external/chromium/net/base/
Descape_unittest.cc97 std::string expected = StringPrintf("%%%02X", i); in TEST() local
98 EXPECT_EQ(expected, out); in TEST()
201 std::string expected("Null"); in TEST() local
202 expected.push_back(0); in TEST()
203 expected.push_back(0); in TEST()
204 expected.append("9Test"); in TEST()
205 EXPECT_EQ(expected, UnescapeURLComponent(input, UnescapeRule::CONTROL_CHARS)); in TEST()
208 expected = "Null"; in TEST()
209 expected.push_back(0); in TEST()
210 expected.append("%009Test"); in TEST()
[all …]
/external/dbus/dbus/
Ddbus-auth-script.c516 DBusAuthState expected; in _dbus_auth_script_run() local
520 expected = auth_state_from_string (&line); in _dbus_auth_script_run()
521 if (expected < 0) in _dbus_auth_script_run()
527 if (expected != state) in _dbus_auth_script_run()
530 auth_state_to_string (expected), in _dbus_auth_script_run()
572 DBusString expected; in _dbus_auth_script_run() local
577 if (!_dbus_string_init (&expected)) in _dbus_auth_script_run()
583 if (!append_quoted_string (&expected, &line)) in _dbus_auth_script_run()
587 _dbus_string_free (&expected); in _dbus_auth_script_run()
593 if (_dbus_string_equal (&expected, unused)) in _dbus_auth_script_run()
[all …]
/external/sqlite/android/
DPhoneticStringUtilsTest.cpp47 #define ASSERT_EQ_VALUE(input, expected) \ argument
49 if ((expected) != (input)) { \
50 printf("0x%X(result) != 0x%X(expected)\n", input, expected); \
56 #define EXPECT_EQ_VALUE(input, expected) \ argument
58 if ((expected) != (input)) { \
59 printf("0x%X(result) != 0x%X(expected)\n", input, expected); \
120 #define EXPECT_EQ_CODEPOINT_UTF8(codepoint, expected) \ argument
129 if (strcmp(string, expected) != 0) { \
135 for (const char *ch = expected; *ch != '\0'; ++ch) { \
160 #define EXPECT_EQ_UTF8_UTF8(src, expected) \ argument
[all …]
/external/icu4c/test/intltest/
Dcallimts.cpp213 int32_t expected; in doTheoreticalLimitsTest() local
215 expected = maxM*maxDOM; in doTheoreticalLimitsTest()
216 if (maxDOY > expected) { in doTheoreticalLimitsTest()
218 + maxDOY + "/expected: <=" + expected); in doTheoreticalLimitsTest()
220 expected = lmaxM*lmaxDOM; in doTheoreticalLimitsTest()
221 if (lmaxDOW < expected) { in doTheoreticalLimitsTest()
223 + lmaxDOW + "/expected: >=" + expected); in doTheoreticalLimitsTest()
228 expected = maxDOY/nDOW + 1; in doTheoreticalLimitsTest()
229 if (maxWOY > expected) { in doTheoreticalLimitsTest()
231 + maxWOY + "/expected: <=" + expected); in doTheoreticalLimitsTest()
[all …]

12345678910>>...27