// field names, please see
// https://docs.google.com/document/d/1T2P0p953_Lh1pRwo-5CuPVrHlIBa_wcXElG-Hhg_WHM/edit?usp=sharing
+test plus sign
+set locale ar
+set pattern +0;-#
+begin
+format output breaks
+6 \u200F+\u0666 JK
+-6 \u200F-\u0666 JK
+
test basic patterns
set locale fr_FR
set format 1234.567
6 06.000
6.000005 06.000
6.000006 06.00001
+1002003004005 4005.000
+-1002003004005 -4005.000
12 12.000
12345 2345.000
72.1234 72.1234
+test int64
+set locale en
+begin
+format output
+1002003004005 1002003004005
+-1002003004005 -1002003004005
+
test rounding
set locale fr
begin
// JDK gives 12,3001E3
##0.000#E0 12300.1 12,30E3 K
##0.000#E0 12301 12,301E3
-// This should round to nearest 0.05E4 but instead round to nearest 0.05
-0.05E0 12301.2 1,25E4 CJK
+0.05E0 12301.2 1,25E4 JK
##0.000#E0 0.17 170,0E-3
// JDK doesn't support significant digits in exponents
@@@E0 6235 6,24E3 K
####,##0$*x;ne#n -1234 ne1\u00a0234nx K
####,##0$*x;n#'*' -1234 n1\u00a0234*xx K
*y%4.2###### 4.33 yyyy%432,6 K
-// In C & J ICU adds padding as if 'EUR' is only 2 chars (2 * 0xa4)
-\u00a4\u00a4 **####0.00 433.0 EUR *433,00 CJK
-// In C & J ICU adds padding as if 'EUR' is only 2 chars (2 * 0xa4)
-\u00a4\u00a4 **#######0 433.0 EUR *433,00 CJK
+// In J ICU adds padding as if 'EUR' is only 2 chars (2 * 0xa4)
+\u00a4\u00a4 **####0.00 433.0 EUR *433,00 JK
+// In J ICU adds padding as if 'EUR' is only 2 chars (2 * 0xa4)
+\u00a4\u00a4 **#######0 433.0 EUR *433,00 JK
test padding and currencies
begin
begin
format output breaks
// min grouping digits not supported in any existing implementation
-// but is supported in the new C code.
+// but could be easily added to the new DecimalFormat C code.
1000 1000 CJK
10000 10,000
100000 100,000
decimalSeparatorAlwaysShown exponentSignAlwaysShown minimumExponentDigits output breaks
0 0 2 3E08 K
0 1 3 3E+008 K
-// ICU DecimalFormat both C and J do not honor decimalSeparatorAlwaysShown
+// ICU DecimalFormat J does not honor decimalSeparatorAlwaysShown
// for scientific notation. But JDK DecimalFormat does honor
// decimalSeparatorAlwaysShown K=JDK; C=ICU4C; J=ICU4J
// See ticket 11621
-1 0 2 3.E08 CJK
-1 1 3 3.E+008 CJK
-1 0 1 3.E8 CJ
+1 0 2 3.E08 JK
+1 1 3 3.E+008 JK
+1 0 1 3.E8 J
0 0 1 3E8
test exponent decimalSeparatorAlwaysShown default
// decimalSeparatorAlwaysShown off by default
299792458 3E8
299000000 2.99E8
-299792458 3.E8 CJ 1
+299792458 3.E8 J 1
test pad position setters
set locale en_US
begin
pattern toPattern breaks
// JDK doesn't support any patterns with padding or both negative prefix and suffix
-// Breaks ICU4C and ICU4J See ticket 11671
-**0,000 **0,000 CJK
+// Breaks ICU4J See ticket 11671
+**0,000 **0,000 JK
**##0,000 **##0,000 K
**###0,000 **###0,000 K
**####0,000 **#,##0,000 K
US Dollat(53.45) fail USD
(53.45)US Dollar fail USD
-
+test ticket 10436
+set locale en
+set roundingMode ceiling
+set minFractionDigits 0
+set maxFractionDigits 0
+begin
+format output breaks
+-0.99 -0 JK