• Home
  • Raw
  • Download

Lines Matching refs:testCases

1683     } testCases[] = {  in TestKeywordVariants()  local
1731 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) { in TestKeywordVariants()
1734 keywords = uloc_openKeywords(testCases[i].localeID, &status); in TestKeywordVariants()
1736 if(status != testCases[i].expectedStatus) { in TestKeywordVariants()
1738 testCases[i].localeID, in TestKeywordVariants()
1739 u_errorName(testCases[i].expectedStatus), u_errorName(status)); in TestKeywordVariants()
1743 if((keyCount = uenum_count(keywords, &status)) != testCases[i].numKeywords) { in TestKeywordVariants()
1744 … log_err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount); in TestKeywordVariants()
1749 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1750 … log_err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
1757 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1758 … log_err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
1767 resultLen = uloc_getName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1769 if (testCases[i].expectedLocaleID == 0) { in TestKeywordVariants()
1771 testCases[i].localeID, buffer); in TestKeywordVariants()
1772 } else if (uprv_strcmp(testCases[i].expectedLocaleID, buffer) != 0) { in TestKeywordVariants()
1774 testCases[i].localeID, testCases[i].expectedLocaleID, buffer); in TestKeywordVariants()
1777 if (testCases[i].expectedLocaleID != 0) { in TestKeywordVariants()
1779testCases[i].localeID, testCases[i].expectedLocaleID, buffer, u_errorName(status)); in TestKeywordVariants()
1784 resultLen = uloc_getBaseName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1786 if (testCases[i].expectedLocaleIDNoKeywords == 0) { in TestKeywordVariants()
1788 testCases[i].localeID, buffer); in TestKeywordVariants()
1789 } else if (uprv_strcmp(testCases[i].expectedLocaleIDNoKeywords, buffer) != 0) { in TestKeywordVariants()
1791 testCases[i].localeID, testCases[i].expectedLocaleIDNoKeywords, buffer); in TestKeywordVariants()
1794 if (testCases[i].expectedLocaleIDNoKeywords != 0) { in TestKeywordVariants()
1796testCases[i].localeID, testCases[i].expectedLocaleIDNoKeywords, buffer, u_errorName(status)); in TestKeywordVariants()
1801 resultLen = uloc_canonicalize(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1803 if (testCases[i].expectedCanonicalID == 0) { in TestKeywordVariants()
1805 testCases[i].localeID, buffer); in TestKeywordVariants()
1806 } else if (uprv_strcmp(testCases[i].expectedCanonicalID, buffer) != 0) { in TestKeywordVariants()
1808 testCases[i].localeID, testCases[i].expectedCanonicalID, buffer); in TestKeywordVariants()
1811 if (testCases[i].expectedCanonicalID != 0) { in TestKeywordVariants()
1813testCases[i].localeID, testCases[i].expectedCanonicalID, buffer, u_errorName(status)); in TestKeywordVariants()
1825 } testCases[] = { in TestKeywordVariantParsing() local
1838 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) { in TestKeywordVariantParsing()
1840 …resultLen = uloc_getKeywordValue(testCases[i].localeID, testCases[i].keyword, buffer, 256, &status… in TestKeywordVariantParsing()
1842 if(uprv_strcmp(testCases[i].expectedValue, buffer) != 0) { in TestKeywordVariantParsing()
1844 testCases[i].expectedValue, testCases[i].localeID, testCases[i].keyword, buffer); in TestKeywordVariantParsing()
2040 } testCases[] = { in TestCanonicalization() local
2131 for (i=0; i < sizeof(testCases)/sizeof(testCases[0]); i++) { in TestCanonicalization()
2133 const char* expected = (j==0) ? testCases[i].getNameID : testCases[i].canonicalID; in TestCanonicalization()
2142 origResultLen = _canonicalize(j, testCases[i].localeID, NULL, 0, &status); in TestCanonicalization()
2145 label[j], testCases[i].localeID, u_errorName(status)); in TestCanonicalization()
2149 resultLen = _canonicalize(j, testCases[i].localeID, buffer, sizeof(buffer), &status); in TestCanonicalization()
2152 label[j], testCases[i].localeID, u_errorName(status)); in TestCanonicalization()
2157 label[j], testCases[i].localeID, buffer, expected); in TestCanonicalization()
2160 label[j], testCases[i].localeID, buffer); in TestCanonicalization()
2164 label[j], testCases[i].localeID, resultLen, strlen(buffer)); in TestCanonicalization()
2168 label[j], testCases[i].localeID, origResultLen, resultLen); in TestCanonicalization()
2182 } testCases[] = { in TestDisplayKeywords() local
2193 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) { in TestDisplayKeywords()
2200 UEnumeration* keywordEnum = uloc_openKeywords(testCases[i].localeID, &status); in TestDisplayKeywords()
2203 …log_err("uloc_getKeywords failed for locale id: %s with error : %s \n", testCases[i].localeID, u_e… in TestDisplayKeywords()
2209 …displayKeywordLen = uloc_getDisplayKeyword(keyword, testCases[i].displayLocale, displayKeyword, di… in TestDisplayKeywords()
2214 …displayKeywordLen = uloc_getDisplayKeyword(keyword, testCases[i].displayLocale, displayKeyword, di… in TestDisplayKeywords()
2216 …yword : %s in locale id: %s for display locale: %s \n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywords()
2219 if(u_strncmp(displayKeyword, testCases[i].displayKeyword, displayKeywordLen)!=0){ in TestDisplayKeywords()
2221 …: %s . Got error: %s. Perhaps you are missing data?\n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywords()
2223 …yword : %s in locale id: %s for display locale: %s \n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywords()
2245 } testCases[] = { in TestDisplayKeywordValues() local
2275 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) { in TestDisplayKeywordValues()
2282 UEnumeration* keywordEnum = uloc_openKeywords(testCases[i].localeID, &status); in TestDisplayKeywordValues()
2285 …for locale id: %s in display locale: % with error : %s \n", testCases[i].localeID, testCases[i].di… in TestDisplayKeywordValues()
2292 …displayKeywordValueLen = uloc_getDisplayKeywordValue(testCases[i].localeID, keyword, testCases[i].… in TestDisplayKeywordValues()
2297 …displayKeywordValueLen = uloc_getDisplayKeywordValue(testCases[i].localeID, keyword, testCases[i].… in TestDisplayKeywordValues()
2299 …cale id: %s for display locale: %s with error : %s \n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywordValues()
2302 … if(u_strncmp(displayKeywordValue, testCases[i].displayKeywordValue, displayKeywordValueLen)!=0){ in TestDisplayKeywordValues()
2304 …le: %s with error : %s Perhaps you are missing data\n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywordValues()
2306 …cale id: %s for display locale: %s with error : %s \n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywordValues()
2394 } testCases[] = { in TestGetBaseName() local
2404 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) { in TestGetBaseName()
2405 baseNameLen = uloc_getBaseName(testCases[i].localeID, baseName, 256, &status); in TestGetBaseName()
2407 if(strcmp(testCases[i].baseName, baseName)) { in TestGetBaseName()
2409 testCases[i].localeID, testCases[i].baseName, baseName); in TestGetBaseName()