1 /************************************************************************* |
|
2 /* DumpDefault11.java -- Dumps the default symbols for the US local to debug |
|
3 /* |
|
4 /* Copyright (c) 1999 Aaron M. Renn (arenn@urbanophile.com) |
|
5 /* |
|
6 /* This program is free software; you can redistribute it and/or modify |
|
7 /* it under the terms of the GNU General Public License as published |
|
8 /* by the Free Software Foundation, either version 2 of the License, or |
|
9 /* (at your option) any later version. |
|
10 /* |
|
11 /* This program is distributed in the hope that it will be useful, but |
|
12 /* WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 /* GNU General Public License for more details. |
|
15 /* |
|
16 /* You should have received a copy of the GNU General Public License |
|
17 /* along with this program; if not, write to the Free Software Foundation |
|
18 /* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA |
|
19 /*************************************************************************/ |
|
20 |
|
21 // Tags: JDK1.1 |
|
22 |
|
23 package gnu.testlet.java.text.DecimalFormatSymbols; |
|
24 |
|
25 import gnu.testlet.Testlet; |
|
26 import gnu.testlet.TestHarness; |
|
27 import java.text.DecimalFormatSymbols; |
|
28 import java.util.Locale; |
|
29 |
|
30 public class DumpDefault11 implements Testlet |
|
31 { |
|
32 |
|
33 public void |
|
34 test(TestHarness harness) |
|
35 { |
|
36 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.US); |
|
37 |
|
38 harness.debug("decimalSeparator=" + dfs.getDecimalSeparator()); |
|
39 harness.debug("digit=" + dfs.getDigit()); |
|
40 harness.debug("groupingSeparator=" + dfs.getGroupingSeparator()); |
|
41 harness.debug("infinity=" + dfs.getInfinity()); |
|
42 harness.debug("minusSign=" + dfs.getMinusSign()); |
|
43 harness.debug("NaN=" + dfs.getNaN()); |
|
44 harness.debug("patternSeparator=" + dfs.getPatternSeparator()); |
|
45 harness.debug("percent=" + dfs.getPercent()); |
|
46 harness.debug("perMill=" + dfs.getPerMill()); |
|
47 harness.debug("zeroDigit=" + dfs.getZeroDigit()); |
|
48 } |
|
49 |
|
50 } // class DumpDefault11 |
|
51 |
|