ICU-89 bump Collator version number due to change in Normalizer algorithm and tables

X-SVN-Rev: 2149
This commit is contained in:
Alan Liu 2000-08-09 22:49:33 +00:00
parent f4ff2cf82e
commit a986339aee

View file

@ -110,11 +110,16 @@ void TestProperty()
{
UCollator *col;
UChar *disName;
int32_t len;
int32_t len, i;
UChar *source, *target;
int32_t tempLength;
UErrorCode status = U_ZERO_ERROR;
UVersionInfo expectVersionArray = {0x01, 0x00, 0x00, 0x00};
/* In general, we don't want to hard-code data from resource files
etc. into tests. To make things somewhat flexible we encode
a min and max version that seem reasonable at this time. This
still will have to be updated if we go beyond 1.9.9.9. */
UVersionInfo minVersionArray = {0x01, 0x00, 0x00, 0x00};
UVersionInfo maxVersionArray = {0x01, 0x09, 0x09, 0x09};
UVersionInfo versionArray;
log_verbose("The property tests begin : \n");
@ -126,12 +131,14 @@ void TestProperty()
}
ucol_getVersion(col, versionArray);
if(memcmp(versionArray, expectVersionArray, U_MAX_VERSION_LENGTH) != 0)
{
for (i=0; i<4; ++i) {
if (versionArray[i] < minVersionArray[i] ||
versionArray[i] > maxVersionArray[i]) {
log_err("Testing ucol_getVersion() - unexpected result: %d.%d.%d.%d\n",
versionArray[0], versionArray[1], versionArray[2], versionArray[3]);
break;
}
}
source=(UChar*)malloc(sizeof(UChar) * 12);
target=(UChar*)malloc(sizeof(UChar) * 12);