jdk/test/java/util/Formatter/Basic-X.java.template
changeset 18545 5f4e734fad1b
parent 15520 b5c4972b71cd
child 19196 5368bd038f19
equal deleted inserted replaced
18544:54c23f2cc3a5 18545:5f4e734fad1b
  1174         test("%.3g", "-1.00e-05", recip(create(-100000.0)));
  1174         test("%.3g", "-1.00e-05", recip(create(-100000.0)));
  1175         test("%.0g", "-1e-05", recip(create(-100000.0)));
  1175         test("%.0g", "-1e-05", recip(create(-100000.0)));
  1176         test("%.0g", "1e+05", create(100000.0));
  1176         test("%.0g", "1e+05", create(100000.0));
  1177         test("%.3G", "1.00E-05", recip(create(100000.0)));
  1177         test("%.3G", "1.00E-05", recip(create(100000.0)));
  1178         test("%.3G", "-1.00E-05", recip(create(-100000.0)));
  1178         test("%.3G", "-1.00E-05", recip(create(-100000.0)));
       
  1179 
       
  1180         test("%.1g", "-0", -0.0);
       
  1181         test("%3.0g", " -0", -0.0);
       
  1182         test("%.1g", "0", 0.0);
       
  1183         test("%3.0g", "  0", 0.0);
       
  1184         test("%.1g", "0", +0.0);
       
  1185         test("%3.0g", "  0", +0.0);
  1179 
  1186 
  1180         test("%3.0g", "1e-06", 0.000001);
  1187         test("%3.0g", "1e-06", 0.000001);
  1181         test("%3.0g", "1e-05", 0.00001);
  1188         test("%3.0g", "1e-05", 0.00001);
  1182         test("%3.0g", "1e-05", 0.0000099);
  1189         test("%3.0g", "1e-05", 0.0000099);
  1183         test("%3.1g", "1e-05", 0.0000099);
  1190         test("%3.1g", "1e-05", 0.0000099);