ICU-11648 Minor tweaks to test.

X-SVN-Rev: 41354
This commit is contained in:
Shane Carr 2018-05-08 04:02:02 +00:00
parent 01c86126de
commit 13b7b40097

View File

@ -9439,11 +9439,13 @@ void NumberFormatTest::Test11025_CurrencyPadding() {
void NumberFormatTest::Test11648_ExpDecFormatMalPattern() {
UErrorCode status = U_ZERO_ERROR;
DecimalFormat fmt("0.00", status);
DecimalFormat fmt("0.00", {"en", status}, status);
fmt.setScientificNotation(TRUE);
UnicodeString pattern;
assertEquals("", "0.00E0", fmt.toPattern(pattern));
assertEquals("A valid scientific notation pattern should be produced",
"0.00E0",
fmt.toPattern(pattern));
DecimalFormat fmt2(pattern, status);
assertSuccess("", status);