--- a/jdk/test/java/util/Formatter/Basic-X.java.template Mon Jun 24 16:21:32 2013 -0700
+++ b/jdk/test/java/util/Formatter/Basic-X.java.template Mon Jun 24 14:17:14 2013 -0700
@@ -1177,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);