ICU-10864 DecimalFormat::getGroupingSize() to return 0 when grouping isn't being used.

X-SVN-Rev: 36028
This commit is contained in:
Travis Keep 2014-07-15 18:18:39 +00:00
parent 71d9e44e03
commit fea6dbb22f

View 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);