Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1371)

Delta Between Two Patch Sets: icu4c/source/test/testdata/numberformattestspecification.txt

Issue 339630043: ticket:13736 Change number parsing to require locale currency when using non-currency parse functio… (Closed) Base URL: svn+icussh://source.icu-project.org/repos/icu/trunk/
Left Patch Set: Created 5 years, 10 months ago
Right Patch Set: Porting to ICU4C and adding locale long name parsing as alternative to currency data parsing. Created 5 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
LEFTRIGHT
(no file at all)
1 // Copyright (C) 2016 and later: Unicode, Inc. and others. 1 // Copyright (C) 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html 2 // License & terms of use: http://www.unicode.org/copyright.html
3 // Copyright (C) 2015-2016, International Business Machines 3 // Copyright (C) 2015-2016, International Business Machines
4 // Corporation and others. All Rights Reserved. 4 // Corporation and others. All Rights Reserved.
5 // 5 //
6 // This file is divided into test suites separated by whitespace. Each test 6 // This file is divided into test suites separated by whitespace. Each test
7 // suite starts with the name of the test followed by global field settings 7 // suite starts with the name of the test followed by global field settings
8 // for that test suite. After the global settings, comes "begin", the 8 // for that test suite. After the global settings, comes "begin", the
9 // per-test field names, and finally the test specific field values, 1 test 9 // per-test field names, and finally the test specific field values, 1 test
10 // per line. 10 // per line.
(...skipping 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 begin 1288 begin
1289 parse output outputCurrency 1289 parse output outputCurrency
1290 EUR 7.82 7.82 EUR 1290 EUR 7.82 7.82 EUR
1291 \u20ac 7.82 7.82 EUR 1291 \u20ac 7.82 7.82 EUR
1292 Euro 7.82 7.82 EUR 1292 Euro 7.82 7.82 EUR
1293 Euros 7.82 7.82 EUR 1293 Euros 7.82 7.82 EUR
1294 1294
1295 test parse currency without currency mode 1295 test parse currency without currency mode
1296 // Should accept a symbol associated with the currency specified by the API, 1296 // Should accept a symbol associated with the currency specified by the API,
1297 // but should not traverse the full currency data. 1297 // but should not traverse the full currency data.
1298 // P always traverses full currency data.
1299 set locale en_US 1298 set locale en_US
1300 set pattern \u00a4#,##0.00 1299 set pattern \u00a4#,##0.00
1301 begin 1300 begin
1302 parse currency output breaks 1301 parse currency output breaks
1303 $52.41 USD 52.41 1302 $52.41 USD 52.41
1304 USD52.41 USD 52.41 K 1303 USD52.41 USD 52.41 K
1305 \u20ac52.41» USD» fail» CP 1304 \u20ac52.41» USD» fail
1306 EUR52.41» USD» fail» CP 1305 EUR52.41» USD» fail
1307 $52.41» EUR» fail» CP 1306 $52.41» EUR» fail
1308 USD52.41» EUR» fail» CP 1307 USD52.41» EUR» fail
1309 \u20ac52.41 EUR 52.41 K 1308 \u20ac52.41 EUR 52.41 K
1310 EUR52.41 EUR 52.41 1309 EUR52.41 EUR 52.41
1311 1310
1312 test parse currency ISO strict 1311 test parse currency ISO strict
1313 set pattern 0.00 \u00a4\u00a4;(#) \u00a4\u00a4 1312 set pattern 0.00 \u00a4\u00a4;(#) \u00a4\u00a4
1314 set locale en_US 1313 set locale en_US
1315 set lenient 0 1314 set lenient 0
1316 begin 1315 begin
1317 parse output outputCurrency breaks 1316 parse output outputCurrency breaks
1318 $53.45 53.45 USD CP 1317 $53.45 53.45 USD CP
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 1656
1658 1657
1659 1658
1660 1659
1661 1660
1662 1661
1663 1662
1664 1663
1665 1664
1666 1665
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b