]> granicus.if.org Git - icu/commitdiff
ICU-10173 Add test for ensuring that zero shoes as 0 and not 0.0
authorTravis Keep <keep94@gmail.com>
Fri, 24 May 2013 22:47:07 +0000 (22:47 +0000)
committerTravis Keep <keep94@gmail.com>
Fri, 24 May 2013 22:47:07 +0000 (22:47 +0000)
X-SVN-Rev: 33752

icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/CompactDecimalFormatTest.java

index 1ca82c5ce94d9d0ba9562ae5f8da8a7be9c39358..4fbce03ec8892dc813bad4a83b8aad7fba55176e 100644 (file)
@@ -25,8 +25,8 @@ public class CompactDecimalFormatTest extends TestFmwk {
 
     Object[][] EnglishTestData = {
             // default is 2 digits of accuracy
-            {0.0d, "0", "knownBug"},
-            {0.01d, "0.0", "knownBug"},
+            {0.0d, "0"},
+            {0.01d, "0.01"},
             {0.1d, "0.1"},
             {1d, "1"},
             {12, "12"},
@@ -261,10 +261,6 @@ public class CompactDecimalFormatTest extends TestFmwk {
     public void checkLocale(ULocale locale, CompactStyle style, Object[][] testData) {
         CompactDecimalFormat cdf = getCDFInstance(locale, style);
         for (Object[] row : testData) {
-            if (row.length > 2) {
-                logKnownIssue("10173", "Fix " + Arrays.asList(row));
-                continue;
-            }
             assertEquals(locale + " (" + locale.getDisplayName(locale) + ") for " + row[0], row[1], cdf.format(row[0]));
         }
     }