diff --git a/icu4c/source/test/cintltst/cucdtst.c b/icu4c/source/test/cintltst/cucdtst.c index 11f00e99d05..935431ad531 100644 --- a/icu4c/source/test/cintltst/cucdtst.c +++ b/icu4c/source/test/cintltst/cucdtst.c @@ -1873,6 +1873,17 @@ TestCharNames() { UChar32 c; int i; + log_verbose("Testing uprv_getMaxCharNameLength()\n"); + length=uprv_getMaxCharNameLength(); + if(length==0) { + /* no names data available */ + return; + } + if(length<83) { /* Unicode 3.2 max char name length */ + log_err("uprv_getMaxCharNameLength()=%d is too short"); + } + /* ### TODO same tests for max ISO comment length as for max name length */ + log_verbose("Testing u_charName()\n"); for(i=0; imaxLength) { + maxLength=len; + } - for (i=0; i