From: Shane Carr Date: Thu, 2 Aug 2018 00:16:29 +0000 (-0700) Subject: ICU-20056 Adding test for minFrac with maxSig X-Git-Tag: release-63-rc~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd1d915c2dff1813523ce9c85ef34bd3f1a1bd34;p=icu ICU-20056 Adding test for minFrac with maxSig --- diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/NumberFormatterApiTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/NumberFormatterApiTest.java index 5b84d77f15d..761b4e11eef 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/NumberFormatterApiTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/NumberFormatterApiTest.java @@ -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/@@@+",