test/jdk/java/util/Formatter/BasicLong.java
changeset 54769 925ee7a89325
parent 50475 0e25d6367884
equal deleted inserted replaced
54768:6f6b636d2909 54769:925ee7a89325
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   592         // %d - int and long
   592         // %d - int and long
   593         //---------------------------------------------------------------------
   593         //---------------------------------------------------------------------
   594         long oneToSeven = (long) 1234567;
   594         long oneToSeven = (long) 1234567;
   595         test("%d", "1234567", oneToSeven);
   595         test("%d", "1234567", oneToSeven);
   596         test("%,d", "1,234,567", oneToSeven);
   596         test("%,d", "1,234,567", oneToSeven);
   597         test(Locale.FRANCE, "%,d", "1\u00a0234\u00a0567", oneToSeven);
   597         test(Locale.FRANCE, "%,d", "1\u202f234\u202f567", oneToSeven);
   598         test("%,d", "-1,234,567", negate(oneToSeven));
   598         test("%,d", "-1,234,567", negate(oneToSeven));
   599         test("%(d", "1234567", oneToSeven);
   599         test("%(d", "1234567", oneToSeven);
   600         test("%(d", "(1234567)", negate(oneToSeven));
   600         test("%(d", "(1234567)", negate(oneToSeven));
   601         test("% d", " 1234567", oneToSeven);
   601         test("% d", " 1234567", oneToSeven);
   602         test("% d", "-1234567", negate(oneToSeven));
   602         test("% d", "-1234567", negate(oneToSeven));