Home | History | Annotate | Download | only in intltest

Lines Matching defs:testCases

1568     } testCases[] = {
1598 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) {
1600 Locale l(testCases[i].localeID);
1603 if(status != testCases[i].expectedStatus) {
1605 u_errorName(testCases[i].expectedStatus), u_errorName(status));
1609 if((keyCount = keywords->count(status)) != testCases[i].numKeywords) {
1610 err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount);
1618 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) {
1619 err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword);
1625 if(*keywordString != UnicodeString(testCases[i].expectedKeywords[j], "")) {
1626 err("Expected to get keyword UnicodeString %s, got %s\n", testCases[i].expectedKeywords[j], keyword);
1647 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) {
1648 err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword);
1656 if(uprv_strcmp(testCases[i].expectedLocaleID, result) != 0) {
1658 testCases[i].expectedLocaleID, testCases[i].localeID, result);
1671 } testCases[] = {
1684 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) {
1686 Locale l(testCases[i].localeID);
1687 resultLen = l.getKeywordValue(testCases[i].keyword, buffer, 256, status);
1688 if(uprv_strcmp(testCases[i].expectedValue, buffer) != 0) {
1690 testCases[i].expectedValue, testCases[i].localeID, testCases[i].keyword, buffer);
1700 } testCases[] = {
1714 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) {
1715 l.setKeywordValue(testCases[i].keyword, testCases[i].value, status);
1721 resultLen = l.getKeywordValue(testCases[i].keyword, buffer, 256, status);
1722 if(uprv_strcmp(testCases[i].value, buffer) != 0) {
1724 testCases[i].value, testCases[i].keyword, buffer);
1734 } testCases[] = {
1742 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) {
1743 Locale loc(testCases[i].localeID);
1744 if(strcmp(testCases[i].baseName, loc.getBaseName())) {
1746 testCases[i].localeID, testCases[i].baseName, loc.getBaseName());
2077 } testCases[] = {
2163 for (i=0; i < (int)(sizeof(testCases)/sizeof(testCases[0])); i++) {
2165 const char* expected = (j==1) ? testCases[i].canonicalID : testCases[i].getNameID;
2166 Locale loc = _canonicalize(j, testCases[i].localeID);
2170 label[j], testCases[i].localeID, getName, expected);
2173 label[j], testCases[i].localeID, getName);