mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-20056 Adding test for minFrac with maxSig
This commit is contained in:
parent
352aa25bdd
commit
e72a89da62
1 changed files with 15 additions and 0 deletions
|
@ -983,6 +983,21 @@ public class NumberFormatterApiTest {
|
|||
"0.01",
|
||||
"0.00");
|
||||
|
||||
assertFormatDescending(
|
||||
"FracSig minFrac maxSig",
|
||||
".0+/@#",
|
||||
NumberFormatter.with().precision(Precision.minFraction(1).withMaxDigits(2)),
|
||||
ULocale.ENGLISH,
|
||||
"88,000.0",
|
||||
"8,800.0",
|
||||
"880.0",
|
||||
"88.0",
|
||||
"8.8",
|
||||
"0.88",
|
||||
"0.088",
|
||||
"0.0088",
|
||||
"0.0");
|
||||
|
||||
assertFormatSingle(
|
||||
"FracSig with trailing zeros A",
|
||||
".00/@@@+",
|
||||
|
|
Loading…
Add table
Reference in a new issue