ICU-11009 Address Andy's review comments.
X-SVN-Rev: 36469
This commit is contained in:
parent
0951252dad
commit
888838e2e5
@ -4,7 +4,7 @@
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*
|
||||
* File NUMFMTSPECTEST.CPP
|
||||
* File numfmtspectest.cpp
|
||||
*
|
||||
*******************************************************************************
|
||||
*/
|
||||
@ -139,8 +139,9 @@ void NumberFormatSpecificationTest::TestScientificNotation() {
|
||||
assertPatternFr("12,300E3", 12300.1, "##0.0000E0");
|
||||
assertPatternFr("12,30E3", 12300.1, "##0.000#E0");
|
||||
assertPatternFr("12,301E3", 12301.0, "##0.000#E0");
|
||||
// broken ticket 11020
|
||||
// assertPatternFr("1,25E4", 12301.2, "0.05E0");
|
||||
if (!logKnownIssue("11020")) {
|
||||
assertPatternFr("1,25E4", 12301.2, "0.05E0");
|
||||
}
|
||||
assertPatternFr("170,0E-3", 0.17, "##0.000#E0");
|
||||
|
||||
}
|
||||
@ -176,8 +177,10 @@ void NumberFormatSpecificationTest::TestPadding() {
|
||||
assertPatternFr("n1 234*xx", -1234, "####,##0$*x;n#'*'");
|
||||
assertPatternFr("yyyy%432,6", 4.33, "*y%4.2######");
|
||||
// Next 2 tests broken because of ticket 11025
|
||||
// assertPatternFr("EUR *433,00", 433.0, "\\u00a4\\u00a4 **####0.00");
|
||||
// assertPatternFr("EUR *433,00", 433.0, "\\u00a4\\u00a4 **#######0");
|
||||
if (!logKnownIssue("11025")) {
|
||||
assertPatternFr("EUR *433,00", 433.0, "\\u00a4\\u00a4 **####0.00");
|
||||
assertPatternFr("EUR *433,00", 433.0, "\\u00a4\\u00a4 **#######0");
|
||||
}
|
||||
{
|
||||
UnicodeString upattern("\\u00a4\\u00a4 **#######0", -1, US_INV);
|
||||
upattern = upattern.unescape();
|
||||
|
Loading…
Reference in New Issue
Block a user