Home
last modified time | relevance | path

Searched refs:testItemPtr (Results 1 – 3 of 3) sorted by relevance

/external/icu/icu4c/source/test/cintltst/
Dcpluralrulestest.c76 const PluralRulesTestItem * testItemPtr; in TestPluralRules() local
78 for ( testItemPtr = testItems; testItemPtr->locale != NULL; ++testItemPtr ) { in TestPluralRules()
80 UPluralRules* uplrules = uplrules_open(testItemPtr->locale, &status); in TestPluralRules()
85 …int32_t keywdLen = uplrules_select(uplrules, testItemPtr->number, keyword, kKeywordBufLen, &status… in TestPluralRules()
90 u_unescape(testItemPtr->keywordExpected, keywordExpected, kKeywordBufLen); in TestPluralRules()
94testItemPtr->locale, testItemPtr->number, testItemPtr->keywordExpected, u_austrcpy(bcharBuf,keywor… in TestPluralRules()
98 testItemPtr->locale, testItemPtr->number, myErrorName(status) ); in TestPluralRules()
102 … unumfmt = unum_open(UNUM_PATTERN_DECIMAL, twoDecimalPat, -1, testItemPtr->locale, NULL, &status); in TestPluralRules()
104 …keywdLen = uplrules_selectWithFormat(uplrules, testItemPtr->number, unumfmt, keyword, kKeywordBufL… in TestPluralRules()
109 … u_unescape(testItemPtr->keywordExpectedForDecimals, keywordExpected, kKeywordBufLen); in TestPluralRules()
[all …]
Dcdateintervalformattest.c74 const DateIntervalFormatTestItem * testItemPtr; in TestDateIntervalFormat() local
78 for ( testItemPtr = testItems; testItemPtr->locale != NULL; ++testItemPtr ) { in TestDateIntervalFormat()
83 const char * tzidForLog = (testItemPtr->tzid)? testItemPtr->tzid: "NULL"; in TestDateIntervalFormat()
86 u_unescape(testItemPtr->skeleton, skelBuf, kSkelBufLen); in TestDateIntervalFormat()
87 if ( testItemPtr->tzid ) { in TestDateIntervalFormat()
88 u_unescape(testItemPtr->tzid, tzidBuf, kTZIDBufLen); in TestDateIntervalFormat()
93 udtitvfmt = udtitvfmt_open(testItemPtr->locale, skelBuf, -1, tzidBuf, tzidLen, &status); in TestDateIntervalFormat()
97 …int32_t fmtLen = udtitvfmt_format(udtitvfmt, testItemPtr->from, testItemPtr->to, result, kFormatBu… in TestDateIntervalFormat()
102 u_unescape(testItemPtr->resultExpected, resultExpected, kFormatBufLen); in TestDateIntervalFormat()
106testItemPtr->locale, testItemPtr->skeleton, tzidForLog, testItemPtr->from, testItemPtr->to, in TestDateIntervalFormat()
[all …]
/external/icu/icu4c/source/test/intltest/
Dcalregts.cpp2487 const CoptEthCalTestItem * testItemPtr; in TestT6745() local
2488 for (testItemPtr = coptEthCalTestItems; testItemPtr->fieldDelta != 0; ++testItemPtr) { in TestT6745()
2490 …cal->set( testItemPtr->startYear + testLocalePtr->yearOffset, testItemPtr->startMonth, testItemPtr in TestT6745()
2491 cal->add( testItemPtr->fieldToChange, testItemPtr->fieldDelta, status ); in TestT6745()
2494testItemPtr->fieldToChange + "/" + testItemPtr->fieldDelta + ", status " + u_errorName(status)); in TestT6745()
2497 int32_t endYear = testItemPtr->endYear + testLocalePtr->yearOffset; in TestT6745()
2501 …if ( U_FAILURE(status) || year != endYear || month != testItemPtr->endMonth || day != testItemPtr-… in TestT6745()
2503testItemPtr->fieldToChange + "/" + testItemPtr->fieldDelta + ", status " + u_errorName(status) + in TestT6745()
2504 … ", expected " + endYear + "/" + testItemPtr->endMonth + "/" + testItemPtr->endDay + in TestT6745()