• Home
  • Raw
  • Download

Lines Matching refs:testCases

1677     } testCases[] = {  in TestKeywordVariants()  local
1716 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) { in TestKeywordVariants()
1719 keywords = uloc_openKeywords(testCases[i].localeID, &status); in TestKeywordVariants()
1721 if(status != testCases[i].expectedStatus) { in TestKeywordVariants()
1723 testCases[i].localeID, in TestKeywordVariants()
1724 u_errorName(testCases[i].expectedStatus), u_errorName(status)); in TestKeywordVariants()
1728 if((keyCount = uenum_count(keywords, &status)) != testCases[i].numKeywords) { in TestKeywordVariants()
1729 … log_err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount); in TestKeywordVariants()
1734 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1735 … log_err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
1742 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1743 … log_err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
1750 resultLen = uloc_getName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1752 if (uprv_strcmp(testCases[i].expectedLocaleID, buffer) != 0) { in TestKeywordVariants()
1754 testCases[i].localeID, testCases[i].expectedLocaleID, buffer); in TestKeywordVariants()
1756 resultLen = uloc_canonicalize(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1757 if (uprv_strcmp(testCases[i].expectedCanonicalID, buffer) != 0) { in TestKeywordVariants()
1759 testCases[i].localeID, testCases[i].expectedCanonicalID, buffer); in TestKeywordVariants()
1771 } testCases[] = { in TestKeywordVariantParsing() local
1784 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) { in TestKeywordVariantParsing()
1786 …resultLen = uloc_getKeywordValue(testCases[i].localeID, testCases[i].keyword, buffer, 256, &status… in TestKeywordVariantParsing()
1788 if(uprv_strcmp(testCases[i].expectedValue, buffer) != 0) { in TestKeywordVariantParsing()
1790 testCases[i].expectedValue, testCases[i].localeID, testCases[i].keyword, buffer); in TestKeywordVariantParsing()
1986 } testCases[] = { in TestCanonicalization() local
2077 for (i=0; i < sizeof(testCases)/sizeof(testCases[0]); i++) { in TestCanonicalization()
2079 const char* expected = (j==0) ? testCases[i].getNameID : testCases[i].canonicalID; in TestCanonicalization()
2088 origResultLen = _canonicalize(j, testCases[i].localeID, NULL, 0, &status); in TestCanonicalization()
2091 label[j], testCases[i].localeID, u_errorName(status)); in TestCanonicalization()
2095 resultLen = _canonicalize(j, testCases[i].localeID, buffer, sizeof(buffer), &status); in TestCanonicalization()
2098 label[j], testCases[i].localeID, u_errorName(status)); in TestCanonicalization()
2103 label[j], testCases[i].localeID, buffer, expected); in TestCanonicalization()
2106 label[j], testCases[i].localeID, buffer); in TestCanonicalization()
2110 label[j], testCases[i].localeID, resultLen, strlen(buffer)); in TestCanonicalization()
2114 label[j], testCases[i].localeID, origResultLen, resultLen); in TestCanonicalization()
2128 } testCases[] = { in TestDisplayKeywords() local
2139 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) { in TestDisplayKeywords()
2146 UEnumeration* keywordEnum = uloc_openKeywords(testCases[i].localeID, &status); in TestDisplayKeywords()
2149 …log_err("uloc_getKeywords failed for locale id: %s with error : %s \n", testCases[i].localeID, u_e… in TestDisplayKeywords()
2155 …displayKeywordLen = uloc_getDisplayKeyword(keyword, testCases[i].displayLocale, displayKeyword, di… in TestDisplayKeywords()
2160 …displayKeywordLen = uloc_getDisplayKeyword(keyword, testCases[i].displayLocale, displayKeyword, di… in TestDisplayKeywords()
2162 …yword : %s in locale id: %s for display locale: %s \n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywords()
2165 if(u_strncmp(displayKeyword, testCases[i].displayKeyword, displayKeywordLen)!=0){ in TestDisplayKeywords()
2167 …: %s . Got error: %s. Perhaps you are missing data?\n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywords()
2169 …yword : %s in locale id: %s for display locale: %s \n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywords()
2191 } testCases[] = { in TestDisplayKeywordValues() local
2221 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) { in TestDisplayKeywordValues()
2228 UEnumeration* keywordEnum = uloc_openKeywords(testCases[i].localeID, &status); in TestDisplayKeywordValues()
2231 …for locale id: %s in display locale: % with error : %s \n", testCases[i].localeID, testCases[i].di… in TestDisplayKeywordValues()
2238 …displayKeywordValueLen = uloc_getDisplayKeywordValue(testCases[i].localeID, keyword, testCases[i].… in TestDisplayKeywordValues()
2243 …displayKeywordValueLen = uloc_getDisplayKeywordValue(testCases[i].localeID, keyword, testCases[i].… in TestDisplayKeywordValues()
2245 …cale id: %s for display locale: %s with error : %s \n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywordValues()
2248 … if(u_strncmp(displayKeywordValue, testCases[i].displayKeywordValue, displayKeywordValueLen)!=0){ in TestDisplayKeywordValues()
2250 …le: %s with error : %s Perhaps you are missing data\n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywordValues()
2252 …cale id: %s for display locale: %s with error : %s \n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywordValues()
2340 } testCases[] = { in TestGetBaseName() local
2350 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) { in TestGetBaseName()
2351 baseNameLen = uloc_getBaseName(testCases[i].localeID, baseName, 256, &status); in TestGetBaseName()
2353 if(strcmp(testCases[i].baseName, baseName)) { in TestGetBaseName()
2355 testCases[i].localeID, testCases[i].baseName, baseName); in TestGetBaseName()