ICU-5190 Added equality test for ucol_safeClone

X-SVN-Rev: 19685
This commit is contained in:
George Rhoten 2006-06-06 00:57:04 +00:00
parent 725c41d1ca
commit 1b31bc0493

View File

@ -748,6 +748,9 @@ void TestSafeClone() {
someClonedCollators[0] = ucol_safeClone(col, buffer[0], &bufferSize, &err);
doAssert( (ucol_greater(col, umlautUStr, u_strlen(umlautUStr), oeStr, u_strlen(oeStr))), "Original German phonebook collation sorts differently than expected");
doAssert( (ucol_greater(someClonedCollators[0], umlautUStr, u_strlen(umlautUStr), oeStr, u_strlen(oeStr))), "Cloned German phonebook collation sorts differently than expected");
if (!ucol_equals(someClonedCollators[0], col)) {
log_err("FAIL: Cloned German phonebook collator is not equal to original.\n");
}
ucol_close(col);
ucol_close(someClonedCollators[0]);