ICU-12083 Fix no data test errors
X-SVN-Rev: 38247
This commit is contained in:
parent
a197e45227
commit
8ac33b6a63
@ -1579,7 +1579,7 @@ void DateIntervalFormatTest::testTicket11669() {
|
||||
LocalPointer<Calendar> intervalStart(Calendar::createInstance(*tz, Locale::getEnglish(), status), status);
|
||||
LocalPointer<Calendar> intervalEnd(Calendar::createInstance(*tz, Locale::getEnglish(), status), status);
|
||||
if (U_FAILURE(status)) {
|
||||
errln("%s:%d %s", __FILE__, __LINE__, u_errorName(status));
|
||||
errcheckln(status, "%s:%d %s", __FILE__, __LINE__, u_errorName(status));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2014-2015, International Business Machines Corporation and *
|
||||
* Copyright (C) 2014-2016, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*
|
||||
@ -1600,7 +1600,7 @@ void MeasureFormatTest::TestIndividualPluralFallback() {
|
||||
new Measure(2, MeasureUnit::createGenericTemperature(errorCode), errorCode), errorCode);
|
||||
UnicodeString expected = UNICODE_STRING_SIMPLE("2\\u00B0").unescape();
|
||||
UnicodeString actual;
|
||||
assertEquals("2 deg temp in fr_CA", expected, mf.format(twoDeg.orphan(), actual, errorCode));
|
||||
assertEquals("2 deg temp in fr_CA", expected, mf.format(twoDeg.orphan(), actual, errorCode), TRUE);
|
||||
}
|
||||
|
||||
void MeasureFormatTest::verifyFieldPosition(
|
||||
|
@ -1,5 +1,5 @@
|
||||
/********************************************************************
|
||||
* Copyright (c) 2008-2015, International Business Machines Corporation and
|
||||
* Copyright (c) 2008-2016, International Business Machines Corporation and
|
||||
* others. All Rights Reserved.
|
||||
********************************************************************/
|
||||
|
||||
@ -522,7 +522,7 @@ void TimeUnitTest::TestBritishShortHourFallback() {
|
||||
UnicodeString result;
|
||||
formatter.format(oneHour, result, status);
|
||||
assertSuccess("TestBritishShortHourFallback()", status);
|
||||
assertEquals("TestBritishShortHourFallback()", UNICODE_STRING_SIMPLE("1 hr"), result);
|
||||
assertEquals("TestBritishShortHourFallback()", UNICODE_STRING_SIMPLE("1 hr"), result, TRUE);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user