/external/chromium_org/third_party/icu/source/test/cintltst/ |
putiltst.c | 30 static void doAssert(double expect, double got, const char *message); 52 doAssert(expn1, 0.5, "uprv_fmod(30.50, 15.00) failed."); 56 doAssert(expn1, 1, "uprv_ceil(0.021) failed."); 60 doAssert(expn1, 0, "uprv_floor(0.021) failed."); 64 doAssert(expn1, 0.675, "uprv_fabs(2.02-1.345) failed."); 67 doAssert(uprv_fmax(2.4, 1.2), 2.4, "uprv_fmax(2.4, 1.2) failed."); 71 doAssert(expn1, uprv_getNaN(), "uprv_fmax(uprv_getNaN(), 1.2) failed. when one parameter is NaN"); 74 doAssert(uprv_fmin(2.4, 1.2), 1.2, "uprv_fmin(2.4, 1.2) failed."); 78 doAssert(expn1, uprv_getNaN(), "uprv_fmin(uprv_getNaN(), 1.2) failed. when one parameter is NaN"); 81 doAssert(uprv_max(4, 2), 4, "uprv_max(4, 2) failed.") [all...] |
capitst.c | 213 static void doAssert(int condition, const char *message) 337 doAssert((ucol_strcoll(col, source, u_strlen(source), target, u_strlen(target)) == UCOL_LESS), "ab < abc comparison failed"); 342 doAssert((ucol_strcoll(col, source, u_strlen(source), target, u_strlen(target)) == UCOL_LESS), "ab < AB comparison failed"); 348 doAssert((ucol_strcoll(col, source, u_strlen(source), target, u_strlen(target)) == UCOL_GREATER), 352 doAssert((ucol_strcoll(col, source, u_strlen(source), target, u_strlen(target)) == UCOL_LESS), 357 doAssert((ucol_strcoll(col, source, u_strlen(source), target, u_strlen(target)) == UCOL_GREATER), 364 doAssert( (ucol_getStrength(col) == UCOL_TERTIARY), "collation object has the wrong strength"); 365 doAssert( (ucol_getStrength(col) != UCOL_PRIMARY), "collation object's strength is primary difference"); 369 doAssert( (ucol_getStrength(col) != UCOL_TERTIARY), "collation object's strength is secondary difference"); 370 doAssert( (ucol_getStrength(col) != UCOL_PRIMARY), "collation object's strength is primary difference") [all...] |
/external/icu4c/test/cintltst/ |
putiltst.c | 47 static void doAssert(double expect, double got, const char *message); 69 doAssert(expn1, 0.5, "uprv_fmod(30.50, 15.00) failed."); 73 doAssert(expn1, 1, "uprv_ceil(0.021) failed."); 77 doAssert(expn1, 0, "uprv_floor(0.021) failed."); 81 doAssert(expn1, 0.675, "uprv_fabs(2.02-1.345) failed."); 84 doAssert(uprv_fmax(2.4, 1.2), 2.4, "uprv_fmax(2.4, 1.2) failed."); 88 doAssert(expn1, uprv_getNaN(), "uprv_fmax(uprv_getNaN(), 1.2) failed. when one parameter is NaN"); 91 doAssert(uprv_fmin(2.4, 1.2), 1.2, "uprv_fmin(2.4, 1.2) failed."); 95 doAssert(expn1, uprv_getNaN(), "uprv_fmin(uprv_getNaN(), 1.2) failed. when one parameter is NaN"); 98 doAssert(uprv_max(4, 2), 4, "uprv_max(4, 2) failed.") [all...] |
capitst.c | 174 static void doAssert(int condition, const char *message) 355 doAssert( (ucol_getStrength(col) == UCOL_TERTIARY), "collation object has the wrong strength"); 356 doAssert( (ucol_getStrength(col) != UCOL_PRIMARY), "collation object's strength is primary difference"); 360 doAssert( (ucol_getStrength(col) != UCOL_TERTIARY), "collation object's strength is secondary difference"); 361 doAssert( (ucol_getStrength(col) != UCOL_PRIMARY), "collation object's strength is primary difference"); 362 doAssert( (ucol_getStrength(col) == UCOL_SECONDARY), "collation object has the wrong strength"); 388 doAssert( tempLength != 0, "getRules() result incorrect" ); 396 doAssert( tempLength == 0x00, "getRulesEx() result incorrect" ); 401 doAssert( tempLength != 0, "getRulesEx() result incorrect" ); 418 doAssert( (ucol_getStrength(col) != UCOL_TERTIARY), "collation object has the wrong strength") [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
apicoll.cpp | 50 CollationAPITest::doAssert(UBool condition, const char *message) 136 doAssert((col->compare("ab", "abc") == Collator::LESS), "ab < abc comparison failed"); 137 doAssert((col->compare("ab", "AB") == Collator::LESS), "ab < AB comparison failed"); 138 doAssert((col->compare("blackbird", "black-bird") == Collator::GREATER), "black-bird > blackbird comparison failed"); 139 doAssert((col->compare("black bird", "black-bird") == Collator::LESS), "black bird > black-bird comparison failed"); 140 doAssert((col->compare("Hello", "hello") == Collator::GREATER), "Hello > hello comparison failed"); 141 doAssert((col->compare("","",success) == UCOL_EQUAL), "Comparison between empty strings failed"); 143 doAssert((col->compareUTF8("\x61\x62\xc3\xa4", "\x61\x62\xc3\x9f", success) == UCOL_LESS), "ab a-umlaut < ab sharp-s UTF-8 comparison failed"); 151 doAssert((col->compare(abauIter, abssIter, success) == UCOL_LESS), "ab a-umlaut < ab sharp-s UCharIterator comparison failed"); 156 doAssert((col->compare("ab", "abc", 2) == Collator::EQUAL), "ab = abc with length 2 comparison failed") [all...] |
usettest.cpp | 390 doAssert(set.isEmpty() == TRUE, "set should be empty"); 391 doAssert(set.size() == 0, "size should be 0"); 393 doAssert(set.size() == 0x110000, "size should be 0x110000"); 397 doAssert(set.isEmpty() == FALSE, "set should not be empty"); 398 doAssert(set.size() != 0, "size should not be equal to 0"); 399 doAssert(set.size() == 26, "size should be equal to 26"); 402 doAssert(set.size() == 22, "size should be equal to 22"); 405 doAssert(set.size() == 19, "size should be equal to 19"); 408 doAssert(set.size() == 16, "size should be equal to 16"); 411 doAssert(set.size() == 10, "size should be equal to 10") [all...] |
/external/icu4c/test/intltest/ |
apicoll.cpp | 52 CollationAPITest::doAssert(UBool condition, const char *message) 138 doAssert((col->compare("ab", "abc") == Collator::LESS), "ab < abc comparison failed"); 139 doAssert((col->compare("ab", "AB") == Collator::LESS), "ab < AB comparison failed"); 140 doAssert((col->compare("blackbird", "black-bird") == Collator::GREATER), "black-bird > blackbird comparison failed"); 141 doAssert((col->compare("black bird", "black-bird") == Collator::LESS), "black bird > black-bird comparison failed"); 142 doAssert((col->compare("Hello", "hello") == Collator::GREATER), "Hello > hello comparison failed"); 143 doAssert((col->compare("","",success) == UCOL_EQUAL), "Comparison between empty strings failed"); 145 doAssert((col->compareUTF8("\x61\x62\xc3\xa4", "\x61\x62\xc3\x9f", success) == UCOL_LESS), "ab a-umlaut < ab sharp-s UTF-8 comparison failed"); 153 doAssert((col->compare(abauIter, abssIter, success) == UCOL_LESS), "ab a-umlaut < ab sharp-s UCharIterator comparison failed"); 158 doAssert((col->compare("ab", "abc", 2) == Collator::EQUAL), "ab = abc with length 2 comparison failed") [all...] |
usettest.cpp | 390 doAssert(set.isEmpty() == TRUE, "set should be empty"); 391 doAssert(set.size() == 0, "size should be 0"); 393 doAssert(set.size() == 0x110000, "size should be 0x110000"); 397 doAssert(set.isEmpty() == FALSE, "set should not be empty"); 398 doAssert(set.size() != 0, "size should not be equal to 0"); 399 doAssert(set.size() == 26, "size should be equal to 26"); 402 doAssert(set.size() == 22, "size should be equal to 22"); 405 doAssert(set.size() == 19, "size should be equal to 19"); 408 doAssert(set.size() == 16, "size should be equal to 16"); 411 doAssert(set.size() == 10, "size should be equal to 10") [all...] |