ICU-2751 updated test for getUCAVersion

X-SVN-Rev: 14318
This commit is contained in:
Vladimir Weinstein 2004-01-14 21:50:51 +00:00
parent 4d153fa348
commit 9174c179e8

View File

@ -278,8 +278,9 @@ void TestProperty()
ICU 2.6 currVersionArray = {0x21, 0x40, 0x03, 0x03};
*/
UVersionInfo currVersionArray = {0x21, 0x40, 0x01, 0x04};
UVersionInfo currUCAVersionArray = {0x21, 0x40, 0x01, 0x04};
UVersionInfo versionArray;
UVersionInfo currUCAVersionArray = {4, 0, 0, 0};
UVersionInfo versionArray = {0, 0, 0, 0};
UVersionInfo versionUCAArray = {0, 0, 0, 0};
log_verbose("The property tests begin : \n");
log_verbose("Test ucol_strcoll : \n");
@ -298,11 +299,11 @@ void TestProperty()
}
}
ucol_getUCAVersion(col, versionArray);
ucol_getUCAVersion(col, versionUCAArray);
for (i=0; i<4; ++i) {
if (versionArray[i] != currUCAVersionArray[i]) {
log_err("Testing ucol_getVersion() - unexpected result: %hu.%hu.%hu.%hu\n",
versionArray[0], versionArray[1], versionArray[2], versionArray[3]);
if (versionUCAArray[i] != currUCAVersionArray[i]) {
log_err("Testing ucol_getUCAVersion() - unexpected result: %hu.%hu.%hu.%hu\n",
versionUCAArray[0], versionUCAArray[1], versionUCAArray[2], versionUCAArray[3]);
break;
}
}