Home | History | Annotate | Download | only in intltest

Lines Matching refs:testCases

1597     } testCases[] = {
1627 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) {
1629 Locale l(testCases[i].localeID);
1632 if(status != testCases[i].expectedStatus) {
1634 u_errorName(testCases[i].expectedStatus), u_errorName(status));
1638 if((keyCount = keywords->count(status)) != testCases[i].numKeywords) {
1639 err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount);
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);
1654 if(*keywordString != UnicodeString(testCases[i].expectedKeywords[j], "")) {
1655 err("Expected to get keyword UnicodeString %s, got %s\n", testCases[i].expectedKeywords[j], keyword);
1676 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) {
1677 err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword);
1685 if(uprv_strcmp(testCases[i].expectedLocaleID, result) != 0) {
1687 testCases[i].expectedLocaleID, testCases[i].localeID, result);
1700 } testCases[] = {
1713 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) {
1715 Locale l(testCases[i].localeID);
1716 resultLen = l.getKeywordValue(testCases[i].keyword, buffer, 256, status);
1717 if(uprv_strcmp(testCases[i].expectedValue, buffer) != 0) {
1719 testCases[i].expectedValue, testCases[i].localeID, testCases[i].keyword, buffer);
1729 } testCases[] = {
1743 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) {
1744 l.setKeywordValue(testCases[i].keyword, testCases[i].value, status);
1750 resultLen = l.getKeywordValue(testCases[i].keyword, buffer, 256, status);
1751 if(uprv_strcmp(testCases[i].value, buffer) != 0) {
1753 testCases[i].value, testCases[i].keyword, buffer);
1763 } testCases[] = {
1771 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) {
1772 Locale loc(testCases[i].localeID);
1773 if(strcmp(testCases[i].baseName, loc.getBaseName())) {
1775 testCases[i].localeID, testCases[i].baseName, loc.getBaseName());
2107 } testCases[] = {
2196 for (i=0; i < (int)(sizeof(testCases)/sizeof(testCases[0])); i++) {
2198 const char* expected = (j==1) ? testCases[i].canonicalID : testCases[i].getNameID;
2199 Locale loc = _canonicalize(j, testCases[i].localeID);
2203 label[j], testCases[i].localeID, getName, expected);
2206 label[j], testCases[i].localeID, getName);