From fffd5ca3884958999d5c617c8170883754a51c71 Mon Sep 17 00:00:00 2001 From: Alan Liu Date: Mon, 4 Dec 2000 19:53:07 +0000 Subject: [PATCH] Add padding test X-SVN-Rev: 3113 --- .../ibm/icu/dev/test/format/BigNumberFormatTest.java | 11 +++++++++-- icu4j/src/com/ibm/test/bnf/BigNumberFormatTest.java | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/icu4j/src/com/ibm/icu/dev/test/format/BigNumberFormatTest.java b/icu4j/src/com/ibm/icu/dev/test/format/BigNumberFormatTest.java index 059941d8e77..e9e123732b9 100755 --- a/icu4j/src/com/ibm/icu/dev/test/format/BigNumberFormatTest.java +++ b/icu4j/src/com/ibm/icu/dev/test/format/BigNumberFormatTest.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/dev/test/format/BigNumberFormatTest.java,v $ - * $Date: 2000/10/26 18:56:14 $ - * $Revision: 1.7 $ + * $Date: 2000/12/04 19:53:07 $ + * $Revision: 1.8 $ * ***************************************************************************************** */ @@ -268,6 +268,13 @@ public class BigNumberFormatTest extends TestFmwk { new Double(1.0/3), "0.33333__ g-m/s^2", } ); + expect(new DecimalFormat("*x#,###,###,##0.00;*x(#,###,###,##0.00)", US), + new Object[] { + new Long(-100), "xxxxxxxx(100.00)", + new Long(-1000), "xxxxxx(1,000.00)", + new Long(-1000000), "xx(1,000,000.00)", + new Long(-1000000000), "(1,000,000,000.00)", + }); } private void expect(NumberFormat fmt, Object[] data) { diff --git a/icu4j/src/com/ibm/test/bnf/BigNumberFormatTest.java b/icu4j/src/com/ibm/test/bnf/BigNumberFormatTest.java index 9476811a312..c936f76f733 100755 --- a/icu4j/src/com/ibm/test/bnf/BigNumberFormatTest.java +++ b/icu4j/src/com/ibm/test/bnf/BigNumberFormatTest.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/test/bnf/Attic/BigNumberFormatTest.java,v $ - * $Date: 2000/10/26 18:56:14 $ - * $Revision: 1.7 $ + * $Date: 2000/12/04 19:53:07 $ + * $Revision: 1.8 $ * ***************************************************************************************** */ @@ -268,6 +268,13 @@ public class BigNumberFormatTest extends TestFmwk { new Double(1.0/3), "0.33333__ g-m/s^2", } ); + expect(new DecimalFormat("*x#,###,###,##0.00;*x(#,###,###,##0.00)", US), + new Object[] { + new Long(-100), "xxxxxxxx(100.00)", + new Long(-1000), "xxxxxx(1,000.00)", + new Long(-1000000), "xx(1,000,000.00)", + new Long(-1000000000), "(1,000,000,000.00)", + }); } private void expect(NumberFormat fmt, Object[] data) {