Home
last modified time | relevance | path

Searched refs:TEST_ASSERT (Results 1 – 25 of 36) sorted by relevance

12

/external/chromium_org/third_party/icu/source/test/intltest/
Dv32test.cpp64 #define TEST_ASSERT(expr) \ macro
99 TEST_ASSERT(b->size() == 3); in UVector32_API()
100 TEST_ASSERT(b->elementAti(1) == 20); in UVector32_API()
114 TEST_ASSERT(*b != *a); in UVector32_API()
115 TEST_ASSERT(!(*b == *a)); in UVector32_API()
116 TEST_ASSERT(!b->equals(*a)); in UVector32_API()
118 TEST_ASSERT(*b == *a); in UVector32_API()
119 TEST_ASSERT(!(*b != *a)); in UVector32_API()
120 TEST_ASSERT(b->equals(*a)); in UVector32_API()
122 TEST_ASSERT(*b != *a); in UVector32_API()
[all …]
Duvectest.cpp64 #define TEST_ASSERT(expr) \ macro
113 TEST_ASSERT(a->elementAti(0) == 10); in UVector_API()
114 TEST_ASSERT(a->elementAti(1) == 15); in UVector_API()
115 TEST_ASSERT(a->elementAti(2) == 20); in UVector_API()
116 TEST_ASSERT(a->elementAti(3) == 30); in UVector_API()
117 TEST_ASSERT(a->indexOf((int32_t)3) == -1); in UVector_API()
118 TEST_ASSERT(a->indexOf((int32_t)15) == 1); in UVector_API()
119 TEST_ASSERT(a->indexOf((int32_t)15, 2) == -1); in UVector_API()
120 TEST_ASSERT(a->contains((int32_t)15)); in UVector_API()
121 TEST_ASSERT(!a->contains((int32_t)5)); in UVector_API()
[all …]
Dutxttest.cpp27 #define TEST_ASSERT(x) \ macro
298 TEST_ASSERT(utext_isWritable(ut) == TRUE); in TestCMR()
436 TEST_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in TestCopyMove()
453 TEST_ASSERT(uti == usi); in TestCopyMove()
454 TEST_ASSERT(utc == usc); in TestCopyMove()
466 TEST_ASSERT(uti == expectedNativeLength); in TestCopyMove()
512 TEST_ASSERT(actualDelta == expectedDelta); in TestReplace()
530 TEST_ASSERT(uti == usi); in TestReplace()
531 TEST_ASSERT(utc == usc); in TestReplace()
540 TEST_ASSERT(uti == expectedNativeLength); in TestReplace()
[all …]
Drbbiapts.cpp34 #define TEST_ASSERT(expr) {if ((expr)==FALSE) { \ macro
270 TEST_ASSERT(tstr == str1); in TestGetSetAdoptText()
282 TEST_ASSERT(wordIter1->getText() != charIter1->getText()); in TestGetSetAdoptText()
285 TEST_ASSERT(tstr == str2); in TestGetSetAdoptText()
288 TEST_ASSERT(tstr == str1); in TestGetSetAdoptText()
303 TEST_ASSERT(rb->preceding(2) == 0); in TestGetSetAdoptText()
304 TEST_ASSERT(rb->following(11) == BreakIterator::DONE); in TestGetSetAdoptText()
327 TEST_ASSERT(pos==0); in TestGetSetAdoptText()
329 TEST_ASSERT(pos==5); in TestGetSetAdoptText()
331 TEST_ASSERT(pos==6); in TestGetSetAdoptText()
[all …]
Dusettest.cpp33 #define TEST_ASSERT(expr) {if (!(expr)) { \ macro
704 TEST_ASSERT((void *)uset == (void *)uniset); in TestAPI()
706 TEST_ASSERT((void *)setx == (void *)uset); in TestAPI()
709 TEST_ASSERT((void *)constUSet == (void *)constSet); in TestAPI()
711 TEST_ASSERT((void *)constSetx == (void *)constUSet); in TestAPI()
766 TEST_ASSERT(nextv == TRUE); in TestIteration()
767 TEST_ASSERT(isString == FALSE); in TestIteration()
768 TEST_ASSERT(codePoint==0x61); in TestIteration()
769 TEST_ASSERT(s == "a"); in TestIteration()
772 TEST_ASSERT(nextv == TRUE); in TestIteration()
[all …]
Ditspoof.cpp27 #define TEST_ASSERT(expr) {if ((expr)==FALSE) { \ macro
123 TEST_ASSERT(UnicodeString("lllOO") == dest); in testSpoofAPI()
124 TEST_ASSERT(&dest == &retStr); in testSpoofAPI()
248 TEST_ASSERT(position == -42); in testInvisible()
339 TEST_ASSERT(fileSize>0); in testConfData()
385 TEST_ASSERT(actual == expected); in testConfData()
/external/icu/icu4c/source/test/intltest/
Dv32test.cpp64 #define TEST_ASSERT(expr) \ macro
99 TEST_ASSERT(b->size() == 3); in UVector32_API()
100 TEST_ASSERT(b->elementAti(1) == 20); in UVector32_API()
114 TEST_ASSERT(*b != *a); in UVector32_API()
115 TEST_ASSERT(!(*b == *a)); in UVector32_API()
116 TEST_ASSERT(!b->equals(*a)); in UVector32_API()
118 TEST_ASSERT(*b == *a); in UVector32_API()
119 TEST_ASSERT(!(*b != *a)); in UVector32_API()
120 TEST_ASSERT(b->equals(*a)); in UVector32_API()
122 TEST_ASSERT(*b != *a); in UVector32_API()
[all …]
Duvectest.cpp64 #define TEST_ASSERT(expr) \ macro
113 TEST_ASSERT(a->elementAti(0) == 10); in UVector_API()
114 TEST_ASSERT(a->elementAti(1) == 15); in UVector_API()
115 TEST_ASSERT(a->elementAti(2) == 20); in UVector_API()
116 TEST_ASSERT(a->elementAti(3) == 30); in UVector_API()
117 TEST_ASSERT(a->indexOf((int32_t)3) == -1); in UVector_API()
118 TEST_ASSERT(a->indexOf((int32_t)15) == 1); in UVector_API()
119 TEST_ASSERT(a->indexOf((int32_t)15, 2) == -1); in UVector_API()
120 TEST_ASSERT(a->contains((int32_t)15)); in UVector_API()
121 TEST_ASSERT(!a->contains((int32_t)5)); in UVector_API()
[all …]
Dutxttest.cpp27 #define TEST_ASSERT(x) \ macro
298 TEST_ASSERT(utext_isWritable(ut) == TRUE); in TestCMR()
436 TEST_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in TestCopyMove()
453 TEST_ASSERT(uti == usi); in TestCopyMove()
454 TEST_ASSERT(utc == usc); in TestCopyMove()
466 TEST_ASSERT(uti == expectedNativeLength); in TestCopyMove()
512 TEST_ASSERT(actualDelta == expectedDelta); in TestReplace()
530 TEST_ASSERT(uti == usi); in TestReplace()
531 TEST_ASSERT(utc == usc); in TestReplace()
540 TEST_ASSERT(uti == expectedNativeLength); in TestReplace()
[all …]
Dalphaindextst.cpp73 #define TEST_ASSERT(expr) {if ((expr)==FALSE) {errln("%s:%d: Test failure \n", __FILE__, __LINE__);… macro
90 TEST_ASSERT(28 == lc); // 26 letters plus two under/overflow labels. in APITest()
100 TEST_ASSERT(coll != NULL); in APITest()
103 TEST_ASSERT(coll == &index->getCollator()); in APITest()
133 TEST_ASSERT(&aip == index); in APITest()
137 TEST_ASSERT(35 < lc); // Japanese should add a bunch. Don't rely on the exact value. in APITest()
148 TEST_ASSERT(*germanCol == indexCol); in APITest()
153 TEST_ASSERT(ELLIPSIS == s); in APITest()
155 TEST_ASSERT(ELLIPSIS == s); in APITest()
157 TEST_ASSERT(ELLIPSIS == s); in APITest()
[all …]
Drbbiapts.cpp38 #define TEST_ASSERT(expr) {if ((expr) == FALSE) { \ macro
273 TEST_ASSERT(tstr == str1); in TestGetSetAdoptText()
285 TEST_ASSERT(wordIter1->getText() != charIter1->getText()); in TestGetSetAdoptText()
288 TEST_ASSERT(tstr == str2); in TestGetSetAdoptText()
291 TEST_ASSERT(tstr == str1); in TestGetSetAdoptText()
306 TEST_ASSERT(rb->preceding(2) == 0); in TestGetSetAdoptText()
307 TEST_ASSERT(rb->following(11) == BreakIterator::DONE); in TestGetSetAdoptText()
330 TEST_ASSERT(pos==0); in TestGetSetAdoptText()
332 TEST_ASSERT(pos==5); in TestGetSetAdoptText()
334 TEST_ASSERT(pos==6); in TestGetSetAdoptText()
[all …]
Ditspoof.cpp34 #define TEST_ASSERT(expr) {if ((expr)==FALSE) { \ macro
167 TEST_ASSERT(UnicodeString("lllOO") == dest); in testSpoofAPI()
168 TEST_ASSERT(&dest == &retStr); in testSpoofAPI()
291 TEST_ASSERT(0 == position); in testInvisible()
391 TEST_ASSERT(fileSize>0); in testConfData()
437 TEST_ASSERT(actual == expected); in testConfData()
459 TEST_ASSERT(bitset12.contains(bitset2)); in testIdentifierInfo()
460 TEST_ASSERT(bitset12.contains(bitset12)); in testIdentifierInfo()
461 TEST_ASSERT(!bitset2.contains(bitset12)); in testIdentifierInfo()
467 TEST_ASSERT(uhash_compareScriptSet(arabEl, latinEl) < 0); in testIdentifierInfo()
[all …]
Dusettest.cpp33 #define TEST_ASSERT(expr) {if (!(expr)) { \ macro
704 TEST_ASSERT((void *)uset == (void *)uniset); in TestAPI()
706 TEST_ASSERT((void *)setx == (void *)uset); in TestAPI()
709 TEST_ASSERT((void *)constUSet == (void *)constSet); in TestAPI()
711 TEST_ASSERT((void *)constSetx == (void *)constUSet); in TestAPI()
766 TEST_ASSERT(nextv == TRUE); in TestIteration()
767 TEST_ASSERT(isString == FALSE); in TestIteration()
768 TEST_ASSERT(codePoint==0x61); in TestIteration()
769 TEST_ASSERT(s == "a"); in TestIteration()
772 TEST_ASSERT(nextv == TRUE); in TestIteration()
[all …]
Dnumrgts.cpp2709 #define TEST_ASSERT(expr) \ macro
2733 TEST_ASSERT(Formattable::kDouble == val.getType());
2734 TEST_ASSERT(1000000000 == val.getInt64(status));
2736 TEST_ASSERT(1000000000.6 == val.getDouble(status));
2744 TEST_ASSERT(Formattable::kDouble == val.getType());
2745 TEST_ASSERT(100000000000000001LL == val.getInt64(status));
2747 TEST_ASSERT(100000000000000000.0 == val.getDouble(status));
2753 TEST_ASSERT(Formattable::kInt64 == val.getType());
2754 TEST_ASSERT(100000000000000000LL == val.getInt64());
2755 TEST_ASSERT(1.0E17 == val.getDouble(status));
[all …]
/external/chromium_org/third_party/icu/source/test/cintltst/
Dutexttst.c35 #define TEST_ASSERT(x) \ macro
74 TEST_ASSERT(c == 0x41); in TestAPI()
76 TEST_ASSERT(utb == NULL); in TestAPI()
80 TEST_ASSERT(uta == &utLoc); in TestAPI()
83 TEST_ASSERT(uta == &utLoc); in TestAPI()
98 TEST_ASSERT(utb != NULL); in TestAPI()
99 TEST_ASSERT(utb != uta); in TestAPI()
101 TEST_ASSERT(len == u_strlen(uString)); in TestAPI()
117 TEST_ASSERT(uta!=NULL); in TestAPI()
120 TEST_ASSERT(b==TRUE); in TestAPI()
[all …]
Dreapits.c35 #define TEST_ASSERT(expr) {if ((expr)==FALSE) { \ macro
185 TEST_ASSERT(status == U_REGEX_INVALID_FLAG); in TestRegexCAPI()
191 TEST_ASSERT(status == U_REGEX_UNIMPLEMENTED); in TestRegexCAPI()
198 TEST_ASSERT(status == U_ILLEGAL_ARGUMENT_ERROR && re == NULL); in TestRegexCAPI()
204 TEST_ASSERT(status == U_USELESS_COLLATOR_ERROR && re == NULL); in TestRegexCAPI()
219 TEST_ASSERT(u_strcmp(pat, p) == 0); in TestRegexCAPI()
220 TEST_ASSERT(len==(int32_t)strlen("abc*")); in TestRegexCAPI()
245 TEST_ASSERT(clone1 != NULL); in TestRegexCAPI()
250 TEST_ASSERT(clone2 != NULL); in TestRegexCAPI()
256 TEST_ASSERT(clone3 != NULL); in TestRegexCAPI()
[all …]
Dtracetst.c50 #define TEST_ASSERT(expr) \ macro
226 TEST_ASSERT(originalTEntryFunc != testTraceEntry); in TestTraceAPI()
227 TEST_ASSERT(originalTExitFunc != testTraceExit); in TestTraceAPI()
228 TEST_ASSERT(originalTDataFunc != testTraceData); in TestTraceAPI()
232 TEST_ASSERT(e == testTraceEntry); in TestTraceAPI()
233 TEST_ASSERT(x == testTraceExit); in TestTraceAPI()
234 TEST_ASSERT(d == testTraceData); in TestTraceAPI()
235 TEST_ASSERT(context == newContext); in TestTraceAPI()
247 TEST_ASSERT(level==UTRACE_OFF); in TestTraceAPI()
250 TEST_ASSERT(level==UTRACE_VERBOSE); in TestTraceAPI()
[all …]
Dhpmufn.c54 #define TEST_ASSERT(expr) \ macro
239 TEST_ASSERT(This->fLockCount == 0); in myMutexDestroy()
240 TEST_ASSERT(This->fMagic == 123456); in myMutexDestroy()
249 TEST_ASSERT(This->fMagic == 123456); in myMutexLock()
257 TEST_ASSERT(This->fMagic == 123456); in myMutexUnlock()
259 TEST_ASSERT(This->fLockCount >= 0); in myMutexUnlock()
331 TEST_ASSERT(gTotalMutexesInitialized > 0); in TestMutexFunctions()
332 TEST_ASSERT(gTotalMutexesActive > 0); in TestMutexFunctions()
339 TEST_ASSERT(gTotalMutexesInitialized > 0); in TestMutexFunctions()
340 TEST_ASSERT(gTotalMutexesActive == 0); in TestMutexFunctions()
[all …]
Dcbiapts.c38 #define TEST_ASSERT(expr) {if ((expr)==FALSE) { \ macro
336 TEST_ASSERT(j == 2); in TestBreakIteratorCAPI()
341 TEST_ASSERT(j == 5); in TestBreakIteratorCAPI()
639 TEST_ASSERT(bi != NULL); in TestBreakIteratorStatusVec()
644 TEST_ASSERT(pos == 1); in TestBreakIteratorStatusVec()
649 TEST_ASSERT(numVals == 2); in TestBreakIteratorStatusVec()
650 TEST_ASSERT(vals[0] == 100); in TestBreakIteratorStatusVec()
651 TEST_ASSERT(vals[1] == 300); in TestBreakIteratorStatusVec()
652 TEST_ASSERT(vals[2] == -1); in TestBreakIteratorStatusVec()
655 TEST_ASSERT(status == U_BUFFER_OVERFLOW_ERROR); in TestBreakIteratorStatusVec()
[all …]
Dspooftest.c34 #define TEST_ASSERT(expr) {if ((expr)==FALSE) { \ macro
186 TEST_ASSERT(serializedSize > 0); in TestUSpoofCAPI()
191 TEST_ASSERT(buf != NULL); in TestUSpoofCAPI()
251 TEST_ASSERT(uset_isFrozen(uset)); in TestUSpoofCAPI()
256 TEST_ASSERT(uset_equals(us, uspoof_getAllowedChars(sc, &status))); in TestUSpoofCAPI()
327 TEST_ASSERT(strcmp("", allowedLocales) == 0) in TestUSpoofCAPI()
334 TEST_ASSERT(strstr(allowedLocales, "en") != NULL); in TestUSpoofCAPI()
335 TEST_ASSERT(strstr(allowedLocales, "ru") != NULL); in TestUSpoofCAPI()
375 TEST_ASSERT(uset_equals(tmpSet, set)); in TestUSpoofCAPI()
/external/icu/icu4c/source/test/cintltst/
Dutexttst.c35 #define TEST_ASSERT(x) \ macro
75 TEST_ASSERT(c == 0x41); in TestAPI()
77 TEST_ASSERT(utb == NULL); in TestAPI()
81 TEST_ASSERT(uta == &utLoc); in TestAPI()
84 TEST_ASSERT(uta == &utLoc); in TestAPI()
99 TEST_ASSERT(utb != NULL); in TestAPI()
100 TEST_ASSERT(utb != uta); in TestAPI()
102 TEST_ASSERT(len == u_strlen(uString)); in TestAPI()
118 TEST_ASSERT(uta!=NULL); in TestAPI()
121 TEST_ASSERT(b==TRUE); in TestAPI()
[all …]
Dreapits.c35 #define TEST_ASSERT(expr) {if ((expr)==FALSE) { \ macro
226 TEST_ASSERT(status == U_REGEX_INVALID_FLAG); in TestRegexCAPI()
232 TEST_ASSERT(status == U_REGEX_UNIMPLEMENTED); in TestRegexCAPI()
239 TEST_ASSERT(status == U_ILLEGAL_ARGUMENT_ERROR && re == NULL); in TestRegexCAPI()
245 TEST_ASSERT(status == U_USELESS_COLLATOR_ERROR && re == NULL); in TestRegexCAPI()
260 TEST_ASSERT(u_strcmp(pat, p) == 0); in TestRegexCAPI()
261 TEST_ASSERT(len==(int32_t)strlen("abc*")); in TestRegexCAPI()
286 TEST_ASSERT(clone1 != NULL); in TestRegexCAPI()
291 TEST_ASSERT(clone2 != NULL); in TestRegexCAPI()
297 TEST_ASSERT(clone3 != NULL); in TestRegexCAPI()
[all …]
Dtracetst.c50 #define TEST_ASSERT(expr) \ macro
227 TEST_ASSERT(originalTEntryFunc != testTraceEntry); in TestTraceAPI()
228 TEST_ASSERT(originalTExitFunc != testTraceExit); in TestTraceAPI()
229 TEST_ASSERT(originalTDataFunc != testTraceData); in TestTraceAPI()
233 TEST_ASSERT(e == testTraceEntry); in TestTraceAPI()
234 TEST_ASSERT(x == testTraceExit); in TestTraceAPI()
235 TEST_ASSERT(d == testTraceData); in TestTraceAPI()
236 TEST_ASSERT(context == newContext); in TestTraceAPI()
248 TEST_ASSERT(level==UTRACE_OFF); in TestTraceAPI()
251 TEST_ASSERT(level==UTRACE_VERBOSE); in TestTraceAPI()
[all …]
Dcbiapts.c38 #define TEST_ASSERT(expr) {if ((expr)==FALSE) { \ macro
344 TEST_ASSERT(j == 2); in TestBreakIteratorCAPI()
349 TEST_ASSERT(j == 5); in TestBreakIteratorCAPI()
643 TEST_ASSERT(bi != NULL); in TestBreakIteratorStatusVec()
648 TEST_ASSERT(pos == 1); in TestBreakIteratorStatusVec()
653 TEST_ASSERT(numVals == 2); in TestBreakIteratorStatusVec()
654 TEST_ASSERT(vals[0] == 100); in TestBreakIteratorStatusVec()
655 TEST_ASSERT(vals[1] == 300); in TestBreakIteratorStatusVec()
656 TEST_ASSERT(vals[2] == -1); in TestBreakIteratorStatusVec()
659 TEST_ASSERT(status == U_BUFFER_OVERFLOW_ERROR); in TestBreakIteratorStatusVec()
[all …]
Dspooftest.c34 #define TEST_ASSERT(expr) {if ((expr)==FALSE) { \ macro
191 TEST_ASSERT(serializedSize > 0); in TestUSpoofCAPI()
196 TEST_ASSERT(buf != NULL); in TestUSpoofCAPI()
256 TEST_ASSERT(uset_isFrozen(uset)); in TestUSpoofCAPI()
261 TEST_ASSERT(uset_equals(us, uspoof_getAllowedChars(sc, &status))); in TestUSpoofCAPI()
351 TEST_ASSERT(strcmp("", allowedLocales) == 0) in TestUSpoofCAPI()
358 TEST_ASSERT(strstr(allowedLocales, "en") != NULL); in TestUSpoofCAPI()
359 TEST_ASSERT(strstr(allowedLocales, "ru") != NULL); in TestUSpoofCAPI()
399 TEST_ASSERT(uset_equals(tmpSet, set)); in TestUSpoofCAPI()

12