]> granicus.if.org Git - icu/commitdiff
ICU-10864 DecimalFormat::getGroupingSize() to return 0 when grouping isn't being...
authorTravis Keep <keep94@gmail.com>
Tue, 15 Jul 2014 18:18:39 +0000 (18:18 +0000)
committerTravis Keep <keep94@gmail.com>
Tue, 15 Jul 2014 18:18:39 +0000 (18:18 +0000)
X-SVN-Rev: 36028

icu4c/source/test/intltest/dcfmapts.cpp

index 850aa97dde9eb07ed059eed3f9e0e750889ffae4..5eea88334559cd8340988f084f3f92d094dfa5b5 100644 (file)
@@ -103,6 +103,14 @@ void IntlTestDecimalFormatAPI::testAPI(/*char *par*/)
         return;
     }
 
+    // bug 10864
+    status = U_ZERO_ERROR;
+    DecimalFormat noGrouping("###0.##", status);
+    if (noGrouping.getGroupingSize() != 0) {
+      errln("Grouping size should be 0 for no grouping.");
+    }
+    // end bug 10864
+
     status = U_ZERO_ERROR;
     const UnicodeString pattern("#,##0.# FF");
     DecimalFormat pat(pattern, status);