10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /**
25 * @test
26 * @bug 4122840 4135202 4408066 4838107 8008577
27 * @summary test NumberFormat
28 * @library /java/text/testlib
29 * @modules java.base/sun.util.resources
30 * @compile -XDignore.symbol.file NumberTest.java
31 * @run main/othervm -Djava.locale.providers=COMPAT,SPI NumberTest
32 */
33
34 import java.util.*;
35 import java.text.*;
36 import sun.util.resources.LocaleData;
37
38 public class NumberTest extends IntlTest
39 {
40 public static void main(String[] args) throws Exception {
41 new NumberTest().run(args);
42 }
43
44 // Test pattern handling
45 public void TestPatterns()
46 {
47 DecimalFormatSymbols sym = DecimalFormatSymbols.getInstance(Locale.US);
48 String pat[] = { "#.#", "#.", ".#", "#" };
49 String newpat[] = { "#0.#", "#0.", "#.0", "#" };
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /**
25 * @test
26 * @bug 4122840 4135202 4408066 4838107 8008577
27 * @summary test NumberFormat
28 * @library /java/text/testlib
29 * @modules java.base/sun.util.resources
30 * jdk.localedata
31 * @compile -XDignore.symbol.file NumberTest.java
32 * @run main/othervm -Djava.locale.providers=COMPAT,SPI NumberTest
33 */
34
35 import java.util.*;
36 import java.text.*;
37 import sun.util.resources.LocaleData;
38
39 public class NumberTest extends IntlTest
40 {
41 public static void main(String[] args) throws Exception {
42 new NumberTest().run(args);
43 }
44
45 // Test pattern handling
46 public void TestPatterns()
47 {
48 DecimalFormatSymbols sym = DecimalFormatSymbols.getInstance(Locale.US);
49 String pat[] = { "#.#", "#.", ".#", "#" };
50 String newpat[] = { "#0.#", "#0.", "#.0", "#" };
|