ICU-2751 test ucol_getUCAVersion
X-SVN-Rev: 14269
This commit is contained in:
parent
e6bae15cc6
commit
67546d711b
@ -278,6 +278,7 @@ void TestProperty()
|
||||
ICU 2.6 currVersionArray = {0x21, 0x40, 0x03, 0x03};
|
||||
*/
|
||||
UVersionInfo currVersionArray = {0x21, 0x40, 0x01, 0x04};
|
||||
UVersionInfo currUCAVersionArray = {0x21, 0x40, 0x01, 0x04};
|
||||
UVersionInfo versionArray;
|
||||
|
||||
log_verbose("The property tests begin : \n");
|
||||
@ -297,6 +298,15 @@ void TestProperty()
|
||||
}
|
||||
}
|
||||
|
||||
ucol_getUCAVersion(col, versionArray);
|
||||
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]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
source=(UChar*)malloc(sizeof(UChar) * 12);
|
||||
target=(UChar*)malloc(sizeof(UChar) * 12);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user