ICU-10864 DecimalFormat::getGroupingSize() to return 0 when grouping isn't being used.
X-SVN-Rev: 36028
This commit is contained in:
parent
71d9e44e03
commit
fea6dbb22f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user