X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/46f4442e9a5a4f3b98b7c1083586332f6a8a99a4..3d1f044b704633e2e541231cd17ae9ecf9ad5c7a:/icuSources/test/testdata/NumberFormatTestCases.txt diff --git a/icuSources/test/testdata/NumberFormatTestCases.txt b/icuSources/test/testdata/NumberFormatTestCases.txt index 29d3af38..f46810bf 100644 --- a/icuSources/test/testdata/NumberFormatTestCases.txt +++ b/icuSources/test/testdata/NumberFormatTestCases.txt @@ -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"