(sprint_doubles): Add a new test.
authordrepper <drepper>
Mon, 30 Apr 2007 22:31:36 +0000 (22:31 +0000)
committerdrepper <drepper>
Mon, 30 Apr 2007 22:31:36 +0000 (22:31 +0000)
stdio-common/tfformat.c

index 259e2e0..d67b3b5 100644 (file)
@@ -4021,6 +4021,8 @@ sprint_double_type sprint_doubles[] =
   {__LINE__, 0.000098,                 "0.0001", "%#.0g"},
   {__LINE__, 0.0000996,                        "0.00010", "%#.2g"},
   {__LINE__, 9.999999999999999e-05,    "0.0001", "%g"},
+  {__LINE__, 1.0,                      "1.000000e+00", "%e"},
+  {__LINE__, .9999999999999999,                "1.000000e+00", "%e"},
 
   {0 }