jdk/test/java/util/Formatter/BasicDouble.java
changeset 18545 5f4e734fad1b
parent 10608 7cfca36fc79b
child 19196 5368bd038f19
--- a/jdk/test/java/util/Formatter/BasicDouble.java	Mon Jun 24 16:21:32 2013 -0700
+++ b/jdk/test/java/util/Formatter/BasicDouble.java	Mon Jun 24 14:17:14 2013 -0700
@@ -1123,6 +1123,15 @@
 
 
 
+
+
+
+
+
+
+
+
+
         //---------------------------------------------------------------------
         // %f - float, double, Double, BigDecimal
         //---------------------------------------------------------------------
@@ -1168,6 +1177,13 @@
         test("%.3G", "1.00E-05", recip(create(100000.0)));
         test("%.3G", "-1.00E-05", recip(create(-100000.0)));
 
+        test("%.1g", "-0", -0.0);
+        test("%3.0g", " -0", -0.0);
+        test("%.1g", "0", 0.0);
+        test("%3.0g", "  0", 0.0);
+        test("%.1g", "0", +0.0);
+        test("%3.0g", "  0", +0.0);
+
         test("%3.0g", "1e-06", 0.000001);
         test("%3.0g", "1e-05", 0.00001);
         test("%3.0g", "1e-05", 0.0000099);