Home | History | Annotate | Download | only in cintltst

Lines Matching refs:testCases

1596     } testCases[] = {
1635 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) {
1638 keywords = uloc_openKeywords(testCases[i].localeID, &status);
1640 if(status != testCases[i].expectedStatus) {
1642 testCases[i].localeID,
1643 u_errorName(testCases[i].expectedStatus), u_errorName(status));
1647 if((keyCount = uenum_count(keywords, &status)) != testCases[i].numKeywords) {
1648 log_err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount);
1653 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) {
1654 log_err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword);
1661 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) {
1662 log_err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword);
1669 resultLen = uloc_getName(testCases[i].localeID, buffer, 256, &status);
1670 if (uprv_strcmp(testCases[i].expectedLocaleID, buffer) != 0) {
1672 testCases[i].localeID, testCases[i].expectedLocaleID, buffer);
1674 resultLen = uloc_canonicalize(testCases[i].localeID, buffer, 256, &status);
1675 if (uprv_strcmp(testCases[i].expectedCanonicalID, buffer) != 0) {
1677 testCases[i].localeID, testCases[i].expectedCanonicalID, buffer);
1689 } testCases[] = {
1702 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) {
1704 resultLen = uloc_getKeywordValue(testCases[i].localeID, testCases[i].keyword, buffer, 256, &status);
1705 if(uprv_strcmp(testCases[i].expectedValue, buffer) != 0) {
1707 testCases[i].expectedValue, testCases[i].localeID, testCases[i].keyword, buffer);
1903 } testCases[] = {
1994 for (i=0; i < sizeof(testCases)/sizeof(testCases[0]); i++) {
1996 const char* expected = (j==0) ? testCases[i].getNameID : testCases[i].canonicalID;
2004 testCases[i], testCases[i].canonicalID); */
2005 origResultLen = _canonicalize(j, testCases[i].localeID, NULL, 0, &status);
2008 label[j], testCases[i].localeID, u_errorName(status));
2012 resultLen = _canonicalize(j, testCases[i].localeID, buffer, sizeof(buffer), &status);
2015 label[j], testCases[i].localeID, u_errorName(status));
2020 label[j], testCases[i].localeID, buffer, expected);
2023 label[j], testCases[i].localeID, buffer);
2027 label[j], testCases[i].localeID, resultLen, strlen(buffer));
2031 label[j], testCases[i].localeID, origResultLen, resultLen);
2045 } testCases[] = {
2056 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) {
2063 UEnumeration* keywordEnum = uloc_openKeywords(testCases[i].localeID, &status);
2066 log_err("uloc_getKeywords failed for locale id: %s with error : %s \n", testCases[i].localeID, u_errorName(status));
2072 displayKeywordLen = uloc_getDisplayKeyword(keyword, testCases[i].displayLocale, displayKeyword, displayKeywordLen, &status);
2077 displayKeywordLen = uloc_getDisplayKeyword(keyword, testCases[i].displayLocale, displayKeyword, displayKeywordLen, &status);
2079 log_err("uloc_getDisplayKeyword filed for keyword : %s in locale id: %s for display locale: %s \n", testCases[i].localeID, keyword, testCases[i].displayLocale, u_errorName(status));
2082 if(u_strncmp(displayKeyword, testCases[i].displayKeyword, displayKeywordLen)!=0){
2084 log_data_err("uloc_getDisplayKeyword did not get the expected value for keyword : %s in locale id: %s for display locale: %s . Got error: %s. Perhaps you are missing data?\n", testCases[i].localeID, keyword, testCases[i].displayLocale, u_errorName(status));
2086 log_err("uloc_getDisplayKeyword did not get the expected value for keyword : %s in locale id: %s for display locale: %s \n", testCases[i].localeID, keyword, testCases[i].displayLocale);
2108 } testCases[] = {
2138 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) {
2145 UEnumeration* keywordEnum = uloc_openKeywords(testCases[i].localeID, &status);
2148 log_err("uloc_getKeywords failed for locale id: %s in display locale: % with error : %s \n", testCases[i].localeID, testCases[i].displayLocale, u_errorName(status));
2155 displayKeywordValueLen = uloc_getDisplayKeywordValue(testCases[i].localeID, keyword, testCases[i].displayLocale, displayKeywordValue, displayKeywordValueLen, &status);
2160 displayKeywordValueLen = uloc_getDisplayKeywordValue(testCases[i].localeID, keyword, testCases[i].displayLocale, displayKeywordValue, displayKeywordValueLen, &status);
2162 log_err("uloc_getDisplayKeywordValue failed for keyword : %s in locale id: %s for display locale: %s with error : %s \n", testCases[i].localeID, keyword, testCases[i].displayLocale, u_errorName(status));
2165 if(u_strncmp(displayKeywordValue, testCases[i].displayKeywordValue, displayKeywordValueLen)!=0){
2167 log_data_err("uloc_getDisplayKeywordValue did not return the expected value keyword : %s in locale id: %s for display locale: %s with error : %s Perhaps you are missing data\n", testCases[i].localeID, keyword, testCases[i].displayLocale, u_errorName(status));
2169 log_err("uloc_getDisplayKeywordValue did not return the expected value keyword : %s in locale id: %s for display locale: %s with error : %s \n", testCases[i].localeID, keyword, testCases[i].displayLocale, u_errorName(status));
2257 } testCases[] = {
2267 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) {
2268 baseNameLen = uloc_getBaseName(testCases[i].localeID, baseName, 256, &status);
2269 if(strcmp(testCases[i].baseName, baseName)) {
2271 testCases[i].localeID, testCases[i].baseName, baseName);