--- old/test/java/util/Formatter/BasicDouble.java 2013-06-24 11:02:14.000000000 -0700 +++ new/test/java/util/Formatter/BasicDouble.java 2013-06-24 11:02:14.000000000 -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);