]> granicus.if.org Git - icu/commitdiff
ICU-11739 Replying to Andy code review comments.
authorShane Carr <shane@unicode.org>
Thu, 24 May 2018 04:31:06 +0000 (04:31 +0000)
committerShane Carr <shane@unicode.org>
Thu, 24 May 2018 04:31:06 +0000 (04:31 +0000)
X-SVN-Rev: 41449

icu4c/source/test/intltest/numfmtst.cpp

index 34280c672cc4973325a26dc7e9403d6ce267f7b1..f66c5037b3837471720da0a3b3b4b4abe04ab195 100644 (file)
@@ -8288,6 +8288,7 @@ void NumberFormatTest::Test10727_RoundingZero() {
 void NumberFormatTest::Test11739_ParseLongCurrency() {
     IcuTestErrorCode status(*this, "Test11739_ParseLongCurrency");
     LocalPointer<NumberFormat> nf(NumberFormat::createCurrencyInstance("sr_BA", status));
+    if (status.errDataIfFailureAndReset()) { return; }
     ((DecimalFormat*) nf.getAlias())->applyPattern(u"#,##0.0 ¤¤¤", status);
     ParsePosition ppos(0);
     LocalPointer<CurrencyAmount> result(nf->parseCurrency(u"1.500 амерички долар", ppos));