]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/testdata/NumberFormatTestCases.txt
ICU-64232.0.1.tar.gz
[apple/icu.git] / icuSources / test / testdata / NumberFormatTestCases.txt
index 29d3af389f12cfc541249b0f56e2fa3eeaffc2a6..f46810bf01cad47631a2c146a5a12c9dffe0b39e 100644 (file)
@@ -1,5 +1,7 @@
-######################################################################
-# Copyright (c) 2004, 2008 International Business Machines
+# Copyright (C) 2016 and later: Unicode, Inc. and others.
+# License & terms of use: http://www.unicode.org/copyright.html
+######################################################################
+# Copyright (c) 2004-2011 International Business Machines
 # Corporation and others.  All Rights Reserved.
 ######################################################################
 # Author: Alan Liu
@@ -14,12 +16,12 @@ rt:  "0.###"  1.0         "1"
 # Basics
 fp:  "0.####" 0.10005     "0.1"        0.1
 fp:  -        0.10006     "0.1001"     0.1001
-pat: -        "#0.####"
+pat: -        "0.####"
 fp:  "#.####" 0.10005     "0.1"        0.1
-pat: -        "#0.####"
+pat: -        "0.####"
 
 rt:  "0"      1234        "1234"
-pat: -        "#0"
+pat: -        "0"
 
 # Significant digits                                                  
 fp:  "@@@"    1.234567    "1.23"       1.23
@@ -75,11 +77,16 @@ rt:  ""       -123.456    "-123.456"
 fpc: "en_US"        1234.56/USD  "$1,234.56"    1234.56/USD
 fpc: -              1234.56/JPY  "\u00A51,235"  1235/JPY
 # ISO codes that overlap display names (QQQ vs. Q)
-fpc: -              123/QQQ      "QQQ123.00"    123/QQQ   # QQQ is fake
-fpc: -              123/GTQ      "Q123.00"      123/GTQ
+# recognize real ISO name in parsing, so, can not use fake name as QQQ
+#fpc: -              123/QQQ      "QQQ123.00"    123/QQQ   # QQQ is fake
+fpc: -              123/GTQ      "GTQ 123.00"      123/GTQ
 # ChoiceFormat-based display names
-fpc: -              1/INR        "\u20a81.00"      1/INR
-fpc: -              2/INR        "\u20a82.00"      2/INR
+fpc: -              1/INR        "\u20b91.00"      1/INR
+fpc: -              2/INR        "\u20b92.00"      2/INR
 # Display names with shared prefix (YDD vs. Y)
-fpc: -              100/YDD      "YDD100.00"    100/YDD
-fpc: -              100/CNY      "RMB100.00"      100/CNY
+fpc: -              100/YDD      "YDD 100.00"    100/YDD
+fpc: -              100/CNY      "CN\u00a5100.00"      100/CNY
+
+# Regression Tests bug#7914
+p: "#E00" "12E12" "12000000000000"
+p: "#####" "12E12" "12000000000000"