ICU-114 Porting error in test causes crash; this only shows up after the Replaceable change for some reason. THIS FIX NEEDED TOGETHER WITH REPLACEABLE CHANGE.

X-SVN-Rev: 206
This commit is contained in:
Alan Liu 1999-11-22 16:17:27 +00:00
parent 8f94f1e62c
commit f6982fa107

View file

@ -315,8 +315,9 @@ void MessageFormatRegressionTest::Test4104976()
UnicodeString("xyz"),
UnicodeString("abc")
};
int32_t formats_length = sizeof(formats)/sizeof(formats[0]);
UErrorCode status = U_ZERO_ERROR;
ChoiceFormat *cf = new ChoiceFormat(limits, formats, status);
ChoiceFormat *cf = new ChoiceFormat(limits, formats, formats_length);
failure(status, "new ChoiceFormat");
//try {
log("Compares to null is always false, returned : ");