• Home
  • Raw
  • Download

Lines Matching refs:testCases

1590     } testCases[] = {  in TestKeywordVariants()  local
1620 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) { in TestKeywordVariants()
1622 Locale l(testCases[i].localeID); in TestKeywordVariants()
1625 if(status != testCases[i].expectedStatus) { in TestKeywordVariants()
1627 u_errorName(testCases[i].expectedStatus), u_errorName(status)); in TestKeywordVariants()
1631 if((keyCount = keywords->count(status)) != testCases[i].numKeywords) { in TestKeywordVariants()
1632 err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount); in TestKeywordVariants()
1640 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1641 … err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
1647 if(*keywordString != UnicodeString(testCases[i].expectedKeywords[j], "")) { in TestKeywordVariants()
1648 …err("Expected to get keyword UnicodeString %s, got %s\n", testCases[i].expectedKeywords[j], keywor… in TestKeywordVariants()
1669 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1670 … err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
1678 if(uprv_strcmp(testCases[i].expectedLocaleID, result) != 0) { in TestKeywordVariants()
1680 testCases[i].expectedLocaleID, testCases[i].localeID, result); in TestKeywordVariants()
1693 } testCases[] = { in TestKeywordVariantParsing() local
1706 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) { in TestKeywordVariantParsing()
1708 Locale l(testCases[i].localeID); in TestKeywordVariantParsing()
1709 resultLen = l.getKeywordValue(testCases[i].keyword, buffer, 256, status); in TestKeywordVariantParsing()
1711 if(uprv_strcmp(testCases[i].expectedValue, buffer) != 0) { in TestKeywordVariantParsing()
1713 testCases[i].expectedValue, testCases[i].localeID, testCases[i].keyword, buffer); in TestKeywordVariantParsing()
1723 } testCases[] = { in TestSetKeywordValue() local
1737 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) { in TestSetKeywordValue()
1738 l.setKeywordValue(testCases[i].keyword, testCases[i].value, status); in TestSetKeywordValue()
1744 resultLen = l.getKeywordValue(testCases[i].keyword, buffer, 256, status); in TestSetKeywordValue()
1746 if(uprv_strcmp(testCases[i].value, buffer) != 0) { in TestSetKeywordValue()
1748 testCases[i].value, testCases[i].keyword, buffer); in TestSetKeywordValue()
1758 } testCases[] = { in TestGetBaseName() local
1767 for(i = 0; i < UPRV_LENGTHOF(testCases); i++) { in TestGetBaseName()
1768 Locale loc(testCases[i].localeID); in TestGetBaseName()
1769 if(strcmp(testCases[i].baseName, loc.getBaseName())) { in TestGetBaseName()
1771 testCases[i].localeID, testCases[i].baseName, loc.getBaseName()); in TestGetBaseName()
2236 } testCases[] = { in TestCanonicalization() local
2325 for (i=0; i < (int)(sizeof(testCases)/sizeof(testCases[0])); i++) { in TestCanonicalization()
2327 const char* expected = (j==1) ? testCases[i].canonicalID : testCases[i].getNameID; in TestCanonicalization()
2328 Locale loc = _canonicalize(j, testCases[i].localeID); in TestCanonicalization()
2332 label[j], testCases[i].localeID, getName, expected); in TestCanonicalization()
2335 label[j], testCases[i].localeID, getName); in TestCanonicalization()