]> granicus.if.org Git - icu/commitdiff
ICU-21249 Fix logKnownIssue for ICU-13574
authorShane F. Carr <shane@unicode.org>
Tue, 15 Sep 2020 01:48:40 +0000 (20:48 -0500)
committerShane F. Carr <shane@unicode.org>
Tue, 15 Sep 2020 17:27:44 +0000 (12:27 -0500)
icu4c/source/test/intltest/numfmtst.cpp

index 86e103291a874d9ceb289985b0a6e813c38d6b2d..dc193f2cc42b26d0c544e8c24701d4e4aefeff92 100644 (file)
@@ -8839,7 +8839,7 @@ void NumberFormatTest::Test11035_FormatCurrencyAmount() {
     // Test two ways to set a currency via API
 
     Locale loc1 = Locale("pt_PT");
-    LocalPointer<NumberFormat> fmt1(NumberFormat::createCurrencyInstance("loc1", status),
+    LocalPointer<NumberFormat> fmt1(NumberFormat::createCurrencyInstance(loc1, status),
                                     status);
     if (U_FAILURE(status)) {
       dataerrln("%s %d NumberFormat instance fmt1 is null",  __FILE__, __LINE__);
@@ -8856,10 +8856,8 @@ void NumberFormatTest::Test11035_FormatCurrencyAmount() {
     UnicodeString actualLocaleString;
     fmt2->format(amount, actualLocaleString);
 
-    // TODO: The following test will fail until DecimalFormat wraps NumberFormatter.
-    if (!logKnownIssue("13574")) {
-        assertEquals("Custom Currency Pattern, Set Currency", expected, actualSetCurrency);
-    }
+    assertEquals("Custom Currency Pattern, Set Currency", expected, actualSetCurrency);
+    assertEquals("Custom Currency Pattern, Locale String", expected, actualLocaleString);
 }
 
 void NumberFormatTest::Test11318_DoubleConversion() {