ICU-3809 test that the returned keyword value length is 0

X-SVN-Rev: 15738
This commit is contained in:
Steven R. Loomis 2004-06-04 23:54:07 +00:00
parent b0337f001c
commit a12842ac57

View File

@ -2800,6 +2800,8 @@ static void TestDisplayKeywordValues(void){
/* fetch the displayKeywordValue */
displayKeywordValueLen = uloc_getDisplayKeywordValue(localeID, "calendar", displayLocale, displayKeywordValue, displayKeywordValueLen, &status);
if(U_FAILURE(status)) {
log_err("uloc_getDisplaykeywordValue returned error status %s\n", u_errorName(status));
} else if(displayKeywordValueLen != 0) {
log_err("uloc_getDisplaykeywordValue returned %d should be 0 \n", displayKeywordValueLen);
}
}