• Home
  • Raw
  • Download

Lines Matching refs:testCases

1693     } testCases[] = {  in TestKeywordVariants()  local
1741 for(i = 0; i < UPRV_LENGTHOF(testCases); i++) { in TestKeywordVariants()
1744 keywords = uloc_openKeywords(testCases[i].localeID, &status); in TestKeywordVariants()
1746 if(status != testCases[i].expectedStatus) { in TestKeywordVariants()
1748 testCases[i].localeID, in TestKeywordVariants()
1749 u_errorName(testCases[i].expectedStatus), u_errorName(status)); in TestKeywordVariants()
1753 if((keyCount = uenum_count(keywords, &status)) != testCases[i].numKeywords) { in TestKeywordVariants()
1754 … log_err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount); in TestKeywordVariants()
1759 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1760 … log_err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
1767 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1768 … log_err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
1777 resultLen = uloc_getName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1779 if (testCases[i].expectedLocaleID == 0) { in TestKeywordVariants()
1781 testCases[i].localeID, buffer); in TestKeywordVariants()
1782 } else if (uprv_strcmp(testCases[i].expectedLocaleID, buffer) != 0) { in TestKeywordVariants()
1784 testCases[i].localeID, testCases[i].expectedLocaleID, buffer); in TestKeywordVariants()
1787 if (testCases[i].expectedLocaleID != 0) { in TestKeywordVariants()
1789testCases[i].localeID, testCases[i].expectedLocaleID, buffer, u_errorName(status)); in TestKeywordVariants()
1794 resultLen = uloc_getBaseName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1796 if (testCases[i].expectedLocaleIDNoKeywords == 0) { in TestKeywordVariants()
1798 testCases[i].localeID, buffer); in TestKeywordVariants()
1799 } else if (uprv_strcmp(testCases[i].expectedLocaleIDNoKeywords, buffer) != 0) { in TestKeywordVariants()
1801 testCases[i].localeID, testCases[i].expectedLocaleIDNoKeywords, buffer); in TestKeywordVariants()
1804 if (testCases[i].expectedLocaleIDNoKeywords != 0) { in TestKeywordVariants()
1806testCases[i].localeID, testCases[i].expectedLocaleIDNoKeywords, buffer, u_errorName(status)); in TestKeywordVariants()
1811 resultLen = uloc_canonicalize(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1813 if (testCases[i].expectedCanonicalID == 0) { in TestKeywordVariants()
1815 testCases[i].localeID, buffer); in TestKeywordVariants()
1816 } else if (uprv_strcmp(testCases[i].expectedCanonicalID, buffer) != 0) { in TestKeywordVariants()
1818 testCases[i].localeID, testCases[i].expectedCanonicalID, buffer); in TestKeywordVariants()
1821 if (testCases[i].expectedCanonicalID != 0) { in TestKeywordVariants()
1823testCases[i].localeID, testCases[i].expectedCanonicalID, buffer, u_errorName(status)); in TestKeywordVariants()
1835 } testCases[] = { in TestKeywordVariantParsing() local
1847 for(i = 0; i < UPRV_LENGTHOF(testCases); i++) { in TestKeywordVariantParsing()
1850 …resultLen = uloc_getKeywordValue(testCases[i].localeID, testCases[i].keyword, buffer, 256, &status… in TestKeywordVariantParsing()
1852 if (testCases[i].expectedValue) { in TestKeywordVariantParsing()
1856testCases[i].expectedValue, testCases[i].localeID, testCases[i].keyword, u_errorName(status)); in TestKeywordVariantParsing()
1857 } else if (uprv_strcmp(testCases[i].expectedValue, buffer) != 0) { in TestKeywordVariantParsing()
1859testCases[i].expectedValue, testCases[i].localeID, testCases[i].keyword, buffer); in TestKeywordVariantParsing()
1864 testCases[i].localeID, testCases[i].keyword, buffer); in TestKeywordVariantParsing()
2122 } testCases[] = { in TestCanonicalization() local
2213 for (i=0; i < UPRV_LENGTHOF(testCases); i++) { in TestCanonicalization()
2215 const char* expected = (j==0) ? testCases[i].getNameID : testCases[i].canonicalID; in TestCanonicalization()
2224 origResultLen = _canonicalize(j, testCases[i].localeID, NULL, 0, &status); in TestCanonicalization()
2227 label[j], testCases[i].localeID, u_errorName(status)); in TestCanonicalization()
2231 resultLen = _canonicalize(j, testCases[i].localeID, buffer, sizeof(buffer), &status); in TestCanonicalization()
2234 label[j], testCases[i].localeID, u_errorName(status)); in TestCanonicalization()
2239 label[j], testCases[i].localeID, buffer, expected); in TestCanonicalization()
2242 label[j], testCases[i].localeID, buffer); in TestCanonicalization()
2246 label[j], testCases[i].localeID, resultLen, strlen(buffer)); in TestCanonicalization()
2250 label[j], testCases[i].localeID, origResultLen, resultLen); in TestCanonicalization()
2300 } testCases[] = { in TestDisplayKeywords() local
2311 for(i = 0; i < UPRV_LENGTHOF(testCases); i++) { in TestDisplayKeywords()
2318 UEnumeration* keywordEnum = uloc_openKeywords(testCases[i].localeID, &status); in TestDisplayKeywords()
2321 …log_err("uloc_getKeywords failed for locale id: %s with error : %s \n", testCases[i].localeID, u_e… in TestDisplayKeywords()
2327 …displayKeywordLen = uloc_getDisplayKeyword(keyword, testCases[i].displayLocale, displayKeyword, di… in TestDisplayKeywords()
2332 …displayKeywordLen = uloc_getDisplayKeyword(keyword, testCases[i].displayLocale, displayKeyword, di… in TestDisplayKeywords()
2334 …yword : %s in locale id: %s for display locale: %s \n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywords()
2337 if(u_strncmp(displayKeyword, testCases[i].displayKeyword, displayKeywordLen)!=0){ in TestDisplayKeywords()
2339 …: %s . Got error: %s. Perhaps you are missing data?\n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywords()
2341 …yword : %s in locale id: %s for display locale: %s \n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywords()
2363 } testCases[] = { in TestDisplayKeywordValues() local
2393 for(i = 0; i < UPRV_LENGTHOF(testCases); i++) { in TestDisplayKeywordValues()
2400 UEnumeration* keywordEnum = uloc_openKeywords(testCases[i].localeID, &status); in TestDisplayKeywordValues()
2403 …for locale id: %s in display locale: % with error : %s \n", testCases[i].localeID, testCases[i].di… in TestDisplayKeywordValues()
2410 …displayKeywordValueLen = uloc_getDisplayKeywordValue(testCases[i].localeID, keyword, testCases[i].… in TestDisplayKeywordValues()
2415 …displayKeywordValueLen = uloc_getDisplayKeywordValue(testCases[i].localeID, keyword, testCases[i].… in TestDisplayKeywordValues()
2417 …cale id: %s for display locale: %s with error : %s \n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywordValues()
2420 … if(u_strncmp(displayKeywordValue, testCases[i].displayKeywordValue, displayKeywordValueLen)!=0){ in TestDisplayKeywordValues()
2422 …le: %s with error : %s Perhaps you are missing data\n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywordValues()
2424 …cale id: %s for display locale: %s with error : %s \n", testCases[i].localeID, keyword, testCases[… in TestDisplayKeywordValues()
2512 } testCases[] = { in TestGetBaseName() local
2522 for(i = 0; i < UPRV_LENGTHOF(testCases); i++) { in TestGetBaseName()
2523 baseNameLen = uloc_getBaseName(testCases[i].localeID, baseName, 256, &status); in TestGetBaseName()
2525 if(strcmp(testCases[i].baseName, baseName)) { in TestGetBaseName()
2527 testCases[i].localeID, testCases[i].baseName, baseName); in TestGetBaseName()