Commit Graph

347 Commits

Author SHA1 Message Date
Norbert Runge
51f4b85f7c ICU-13055 Fix percentage rounding.
X-SVN-Rev: 41340
2018-05-07 22:40:41 +00:00
Shane Carr
cc5fca2744 ICU-13035 Adding test to ICU4C for padding code point.
X-SVN-Rev: 41339
2018-05-07 22:37:02 +00:00
Andy Heninger
8f7040d418 ICU-11646 Add NumberFormatTest::Test11646_Equality()
X-SVN-Rev: 41338
2018-05-07 22:33:41 +00:00
Markus Scherer
cee964917a ICU-11839 port NumberFormatTest.Test11839 to C++
X-SVN-Rev: 41337
2018-05-07 22:32:05 +00:00
Craig Cornelius
80b94957c3 ICU-11648 Add test for DecimalFormat::toPattern
X-SVN-Rev: 41336
2018-05-07 22:19:10 +00:00
Markus Scherer
8b67b86c79 ICU-12567 port NumberFormatTest.Test12567 to C++
X-SVN-Rev: 41335
2018-05-07 22:07:43 +00:00
Shane Carr
66510b153f ICU-11739 Adding ICU4C test for parse long currency.
X-SVN-Rev: 41334
2018-05-07 21:47:09 +00:00
Shane Carr
076cee9ad6 ICU-11645 Adding C++ test for apply-pattern equality.
X-SVN-Rev: 41333
2018-05-07 21:30:33 +00:00
Markus Scherer
5cf4bdf6db ICU-10354 port NumberFormatTest.Test10354 to C++
X-SVN-Rev: 41332
2018-05-07 21:21:18 +00:00
Shane Carr
28e9f69378 ICU-11897 Adding tests for localized pattern separator symbol.
X-SVN-Rev: 41292
2018-04-28 07:27:02 +00:00
Shane Carr
e77603e3c3 ICU-13725 Fixing various number test failures in MSVC.
X-SVN-Rev: 41281
2018-04-26 01:33:59 +00:00
Shane Carr
f412770e9d ICU-13634 A few more DecimalFormat optimizations.
X-SVN-Rev: 41257
2018-04-21 06:00:56 +00:00
Shane Carr
1aa5185a36 ICU-13700 Renaming new getter/setter to magnitudeScale.
X-SVN-Rev: 41246
2018-04-18 23:55:55 +00:00
Shane Carr
3c9b343282 ICU-13634 Adding "formatFailIfMoreThanMaxDigits" property to C++ NumberFormatter. Changing getSecondaryGroupingSize() for backwards compatibility. Other assorted test changes.
X-SVN-Rev: 41239
2018-04-18 03:59:39 +00:00
Shane Carr
354afa4e79 ICU-13697 Adding data-loading logic for parseLenients sets in CLDR. Ties the sets in with number and currency parsing in ICU4C and ICU4J.
X-SVN-Rev: 41223
2018-04-12 10:59:37 +00:00
Shane Carr
af0f8e62e4 ICU-13634 In accordance with ICU-TC meeting, changing percent parsing behavior to be closer to that of ICU 60.
X-SVN-Rev: 41222
2018-04-12 06:49:24 +00:00
Shane Carr
6c1714870f ICU-13634 Updating test expectations for strict currency position in strict mode. Other minor changes. All but one test is now passing in numfmtst.cpp.
X-SVN-Rev: 41220
2018-04-12 05:15:19 +00:00
Shane Carr
5f57f04466 ICU-13634 Updating test expectations for the default currency long name.
X-SVN-Rev: 41218
2018-04-12 04:04:23 +00:00
Shane Carr
2c6bf0d77e ICU-13634 Refactoring affix-getting code to avoid the need to save the micro-props. Other assorted minor changes.
X-SVN-Rev: 41216
2018-04-11 11:10:52 +00:00
Shane Carr
cd92fa2c88 ICU-13634 Changing DecimalQuantity#toNumberString() to be DecimalQuantity#toScientificString() with slightly friendlier output syntax for better compatibility. More currency tweaks.
X-SVN-Rev: 41215
2018-04-11 05:52:58 +00:00
Shane Carr
a901b5c04a ICU-13634 Fixing more assorted currency parsing issues.
X-SVN-Rev: 41214
2018-04-11 02:18:13 +00:00
Shane Carr
b9925e084e ICU-13634 Fixing various issues in order to make currencies round-trip in strict mode.
X-SVN-Rev: 41212
2018-04-07 11:10:08 +00:00
Shane Carr
06485f3b6b ICU-13634 Fixing CurrencyPluralInfo support in formatting, allowing for currency long names to be formatted.
X-SVN-Rev: 41211
2018-04-07 08:49:11 +00:00
Shane Carr
73f93a457a ICU-13634 Fixing DecimalQuantity call sites, first written in r41063, r41064, and r41098. RNBF test is passing again.
X-SVN-Rev: 41204
2018-04-06 09:35:16 +00:00
Shane Carr
7f9de6f1db ICU-13634 Fixing resolution of negative and percent signs in parsing; adding custom sign support to ScientificMatcher; and other minor fixes.
X-SVN-Rev: 41180
2018-03-31 03:10:44 +00:00
Shane Carr
db9c74b3f4 ICU-13634 More assorted number formatting/parsing fixes.
X-SVN-Rev: 41179
2018-03-30 10:37:24 +00:00
Shane Carr
02669ad1bc ICU-13634 Fixes for NumberFormatTest/TestExponential.
X-SVN-Rev: 41177
2018-03-30 07:22:24 +00:00
Shane Carr
e5bda1eb0e ICU-13634 Various fixes to fix remaining compatibility issues in data-driven test. Includes fix for a memory sanitizer issue.
X-SVN-Rev: 41174
2018-03-30 04:28:53 +00:00
Shane Carr
1b4670fd29 ICU-13634 Merging trunk to branch
X-SVN-Rev: 41162
2018-03-28 01:08:47 +00:00
Shane Carr
a8f2471248 ICU-8610 Adding tests for number skeletons in C++. Adding error code handling to the setToDecNumber setter on DecimalQuantity. Refactoring char-to-uchar conversion in skeleton implementation code.
X-SVN-Rev: 41152
2018-03-24 05:46:28 +00:00
Shane Carr
e3180662e2 ICU-13634 Parsing wrapper is working; data-driven file is updated and passing. The C++ and Java implementations have almost identical behavior according to the data-driven test file, with the only differences seeming to involve overflow and extremely large numbers.
X-SVN-Rev: 41134
2018-03-21 09:48:55 +00:00
Shane Carr
0b6e991bb0 ICU-13634 C and J, removing the obsolete "optimize" parameter for NumberParserImpl.
X-SVN-Rev: 41132
2018-03-21 06:33:37 +00:00
Shane Carr
4fad01c342 ICU-13634 Adding pipeline for custom currency symbols.
X-SVN-Rev: 41119
2018-03-17 01:31:52 +00:00
Shane Carr
453788ddfd ICU-13634 Temporarily deleting all old number formatting implementation code. Pieces will be restored as needed. ICU4C builds, including tests, but won't run. Changes in plurfmt.cpp and plurrule.cpp are not tested. numberformat2test.cpp is unlinked but not deleted.
X-SVN-Rev: 41098
2018-03-13 08:12:05 +00:00
Norbert Runge
b5e8865ff2 ICU-13581 Make tests work, not crash, when run without ICU data
X-SVN-Rev: 41073
2018-03-06 23:13:49 +00:00
Shane Carr
94427dc200 ICU-13574 Replacing DigitList with DecimalQuantity through most of the code base.
X-SVN-Rev: 41064
2018-03-03 10:53:01 +00:00
Shane Carr
23872cb601 ICU-11318 Integrating double-conversion into icu4c. Changing both old and new number formatting implementations to call it.
X-SVN-Rev: 40929
2018-02-16 01:25:43 +00:00
Shane Carr
fc3c904559 ICU-13513 Synchronizing C and J copies of numberformattestspecification.txt
X-SVN-Rev: 40909
2018-02-13 19:10:07 +00:00
Shane Carr
e8e0cdf41d ICU-13568 Fixing memory leak in test.
X-SVN-Rev: 40875
2018-02-09 00:57:30 +00:00
Shane Carr
61191ffda3 ICU-13568 Adding assertSuccess in test function.
X-SVN-Rev: 40852
2018-02-07 23:28:56 +00:00
Shane Carr
023af04592 ICU-13568 Fixing uninitialized memory in test code.
X-SVN-Rev: 40851
2018-02-07 22:56:38 +00:00
Steven R. Loomis
4b36c0ad9c ICU-13568 Fix crasher introduced in r40839 (bad test code)
Root cause (why the construction failed) unknown.

X-SVN-Rev: 40850
2018-02-07 22:49:43 +00:00
Shane Carr
e5cc630590 ICU-13568 ICU-13400 ICU-13389 ICU-13075 NumberFormatter assorted fixes: Adding custom pattern support for currencies. Upgrading grouping API. Adding narrow currency symbol support to ICU4C and API. Fixing behavior when pattern does not have a number placeholder.
X-SVN-Rev: 40838
2018-02-06 03:08:17 +00:00
Shane Carr
c67d9d0a4a ICU-13496 Adds missing NumberFormatter test to ICU4C
X-SVN-Rev: 40682
2017-12-01 07:57:05 +00:00
Steven R. Loomis
5e63d2297e ICU-13415 porting: std::isinf/std::isnan back to uprv. also see ICU-13315
X-SVN-Rev: 40629
2017-10-24 22:39:03 +00:00
Norbert Runge
b96966a131 ICU-13358 No-data test fixes (cf. BRS task).
X-SVN-Rev: 40599
2017-10-06 23:11:11 +00:00
Shane Carr
e6987fbfd8 ICU-13391 Change ICU4C parsing to count digits instead of UTF-16 code units for grouping sizes.
X-SVN-Rev: 40573
2017-10-05 21:41:46 +00:00
Andy Heninger
7a72a8f032 ICU-13380 Fixes for memory leaks & other problems found by Address Sanitizer.
X-SVN-Rev: 40529
2017-10-03 04:11:26 +00:00
Peter Edberg
b06ac0cc8f ICU-13359 Integrate updated CLDR 32 tags/release-32-beta; still have known issues #13366,#13368
X-SVN-Rev: 40515
2017-09-29 20:05:13 +00:00
Andy Heninger
e16c565b09 ICU-23327 Fix uninitialized error code in test.
X-SVN-Rev: 40502
2017-09-28 21:19:47 +00:00