ICU-9802 Fix failures in running intltest without data
X-SVN-Rev: 32981
This commit is contained in:
parent
a26ebe2ec5
commit
a2b57cea30
@ -4112,6 +4112,10 @@ void DateFormatTest::TestDotAndAtLeniency() {
|
||||
LocalPointer<DateFormat> format(DateFormat::createDateTimeInstance(dateStyle, timeStyle, locale));
|
||||
LocalPointer<DateFormat> timeFormat(DateFormat::createTimeInstance(timeStyle, locale));
|
||||
UnicodeString formattedString;
|
||||
if (format.isNull()) {
|
||||
dataerrln("Unable to create DateFormat");
|
||||
continue;
|
||||
}
|
||||
format->format(TEST_DATE, formattedString);
|
||||
|
||||
if (!showParse(*format, formattedString)) {
|
||||
|
@ -2904,8 +2904,11 @@ void NumberFormatRegressionTest::Test9677(void) {
|
||||
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
LocalUNumberFormatPointer f(unum_open(UNUM_DEFAULT, NULL, 0, "en_US", NULL, &status));
|
||||
if (U_FAILURE(status)) {
|
||||
dataerrln("Failure opening unum_open");
|
||||
return;
|
||||
}
|
||||
|
||||
assertSuccess("opening unum_open", status);
|
||||
if (U_SUCCESS(status)) {
|
||||
unum_applyPattern(f.getAlias(), FALSE, pattern, -1, NULL, &status);
|
||||
unum_setTextAttribute(f.getAlias(), UNUM_POSITIVE_PREFIX, positivePrefix, -1, &status);
|
||||
|
Loading…
Reference in New Issue
Block a user