]> granicus.if.org Git - icu/commitdiff
ICU-11740 Final sync of C and J copies of data driven tests.
authorTravis Keep <keep94@gmail.com>
Wed, 9 Sep 2015 00:10:38 +0000 (00:10 +0000)
committerTravis Keep <keep94@gmail.com>
Wed, 9 Sep 2015 00:10:38 +0000 (00:10 +0000)
X-SVN-Rev: 37911

icu4j/main/tests/core/src/com/ibm/icu/dev/data/numberformattestspecification.txt

index b32bf0b865b186e3f46a58e380dffb30759bbdd7..8e6d1f6ffee12e5f7dd9c27664b8a8f3b4aaa936 100644 (file)
 // 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
@@ -38,10 +46,19 @@ format      output
 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
@@ -91,8 +108,7 @@ pattern      format  output  breaks
 // 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
@@ -144,10 +160,10 @@ $**####,##0       1234    $***1\u00a0234  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
@@ -185,7 +201,7 @@ set minGroupingDigits 2
 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
@@ -427,13 +443,13 @@ begin
 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
@@ -444,7 +460,7 @@ format      output  breaks  decimalSeparatorAlwaysShown
 // decimalSeparatorAlwaysShown off by default
 299792458      3E8
 299000000      2.99E8
-299792458      3.E8    CJ      1
+299792458      3.E8          1
 
 test pad position setters
 set locale en_US
@@ -527,8 +543,8 @@ set locale en
 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
@@ -1081,5 +1097,12 @@ US Dollar(53.45) fail    USD
 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