Searched refs:testCases (Results 1 - 16 of 16) sorted by relevance

/external/icu4c/test/cintltst/
H A Dcg7coll.c67 const static UChar testCases[][MAX_TOKEN_LEN] = { variable
178 doTest(tblColl1, testCases[results[i][j]], testCases[results[i][n]], UCOL_LESS);
211 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], UCOL_LESS);
241 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], UCOL_LESS);
271 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], UCOL_LESS);
300 doTest(myCollation, testCases[result
[all...]
H A Dcloctst.c1439 } testCases[] = { local
1478 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) {
1481 keywords = uloc_openKeywords(testCases[i].localeID, &status);
1483 if(status != testCases[i].expectedStatus) {
1485 testCases[i].localeID,
1486 u_errorName(testCases[i].expectedStatus), u_errorName(status));
1490 if((keyCount = uenum_count(keywords, &status)) != testCases[i].numKeywords) {
1491 log_err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount);
1496 if(strcmp(keyword, testCases[
1532 } testCases[] = { local
1746 } testCases[] = { local
1888 } testCases[] = { local
1951 } testCases[] = { local
2100 } testCases[] = { local
[all...]
H A Dputiltst.c275 const char *testCases[] = { local
290 for(j=0;testCases[j]!=NULL;j+=3) {
291 v1str = testCases[j+0];
292 opstr = testCases[j+1];
293 v2str = testCases[j+2];
H A Dcapitst.c1980 } testCases[] = { local
1999 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) {
2001 if(testCases[i].locale) {
2002 locale = testCases[i].locale;
2007 coll = ucol_openFromShortString(testCases[i].input, FALSE, &parseError, &status);
2008 if(status != testCases[i].expectedStatus) {
2010 u_errorName(status), u_errorName(testCases[i].expectedStatus), testCases[i].input);
2017 if(strcmp(fromShortBuffer, testCases[
[all...]
H A Dcalldata.h92 const UChar testCases[][4] = variable
H A Dcbiditst.c1906 } testCases[]={ local
1925 log_verbose("inverse Bidi: testInverse(L) with %u test cases ---\n", LENGTHOF(testCases));
1926 for(i=0; i<LENGTHOF(testCases); ++i) {
1929 _testInverseBidi(pBiDi, testCases[i].s, testCases[i].length, 0, &errorCode);
1932 log_verbose("inverse Bidi: testInverse(R) with %u test cases ---\n", LENGTHOF(testCases));
1933 for(i=0; i<LENGTHOF(testCases); ++i) {
1936 _testInverseBidi(pBiDi, testCases[i].s, testCases[i].length, 1, &errorCode);
3284 } testCases[] local
[all...]
H A Dncnvtst.c1841 } testCases[]={ local
1875 for(i=0; i<LENGTHOF(testCases); ++i) {
1876 doTestTruncated(testCases[i].cnvName, testCases[i].bytes, testCases[i].length);
H A Dcallcoll.c826 doTest(myCollation, testCases[i], testCases[j], UCOL_LESS);
H A Dcreststn.c2515 static void TestGetFunctionalEquivalentOf(const char *path, const char *resName, const char *keyword, UBool truncate, const char * const testCases[]) { argument
2517 for(i=0;testCases[i];i+=3) {
2518 UBool expectAvail = (testCases[i][0]=='t')?TRUE:FALSE;
2520 const char *inLocale = testCases[i+1];
2521 const char *expectLocale = testCases[i+2];
/external/icu4c/test/intltest/
H A Dg7coll.cpp19 static const UChar testCases[][G7CollationTest::MAX_TOKEN_LEN] = { variable
149 doTest(tblColl1, testCases[results[i][j]], testCases[results[i][n]], Collator::LESS);
184 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], Collator::LESS);
218 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], Collator::LESS);
252 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], Collator::LESS);
281 doTest(myCollation, testCases[result
[all...]
H A Dloctest.cpp1564 } testCases[] = { local
1594 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) {
1596 Locale l(testCases[i].localeID);
1599 if(status != testCases[i].expectedStatus) {
1601 u_errorName(testCases[i].expectedStatus), u_errorName(status));
1605 if((keyCount = keywords->count(status)) != testCases[i].numKeywords) {
1606 err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount);
1614 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) {
1615 err("Expected to get keyword value %s, got %s\n", testCases[
1667 } testCases[] = { local
1696 } testCases[] = { local
2039 } testCases[] = { local
[all...]
H A Dallcoll.cpp138 doTest(myCollation, testCases[i], testCases[j], Collator::LESS);
H A Dssearch.cpp381 UdhrTestCase testCases[] = { local
393 int32_t testCount = ARRAY_SIZE(testCases);
401 ucbuf_resolveFileName(udhrPath, testCases[t].file, NULL, &len, &status);
412 ucbuf_resolveFileName(udhrPath, testCases[t].file, resolvedFileName, &len, &status);
418 infoln("Could not open the input file %s. Test skipped\n", testCases[t].file);
444 UCollator *coll = ucol_open(testCases[t].locale, &status);
449 errln("Could not open collator for %s", testCases[t].locale);
456 errln("Could not open CollData object for %s", testCases[t].locale);
463 errln("Could not open search object for %s", testCases[t].locale);
473 errln("Could not find pattern - locale: %s, file: %s ", testCases[
[all...]
H A Dtmsgfmt.cpp245 UnicodeString testCases[] = { local
283 //it_out << "\nPat in: " << testCases[i]);
288 form = new MessageFormat(testCases[i], Locale::getUS(), success);
291 logln(((UnicodeString)"MessageFormat for ") + testCases[i] + " creation failed.\n");
297 errln(((UnicodeString)" Orig: ") + testCases[i]);
H A Dtranstst.cpp3328 const UnicodeString testCases[] = { local
3396 for (i = 0; testCases[i].length()!=0; i+=3) {
3399 const UnicodeString& name = testCases[i];
3407 const UnicodeString& source = testCases[i+1];
3412 if (testCases[i+2].length() > 0) {
3413 target = testCases[i+2];
H A Dnumfmtst.cpp677 static const char* testCases[][2]= { variable
728 for(int i=0; i < (int)(sizeof(testCases)/sizeof(testCases[i])); i++){
730 const char *localeID = testCases[i][0];
731 UnicodeString expected(testCases[i][1], -1, US_INV);

Completed in 282 milliseconds