From bbeaaa84be3b6f995aca6322e43e7bfaa8df5e01 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 31 Jul 2007 12:32:17 +0000 Subject: * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests. 2007-07-31 Jakub Jelinek * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests. --- stdio-common/tfformat.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'stdio-common') diff --git a/stdio-common/tfformat.c b/stdio-common/tfformat.c index f9b5f76..7704ddd 100644 --- a/stdio-common/tfformat.c +++ b/stdio-common/tfformat.c @@ -4026,6 +4026,18 @@ sprint_double_type sprint_doubles[] = {__LINE__, 912.98, "913.0", "%#.4g"}, {__LINE__, 50.999999, "51.000", "%#.5g"}, + {__LINE__, 0.956, "1", "%.1g"}, + {__LINE__, 0.956, "1.", "%#.1g"}, + {__LINE__, 0.996, "1", "%.2g"}, + {__LINE__, 0.996, "1.0", "%#.2g"}, + {__LINE__, 999.98, "1000", "%.4g"}, + {__LINE__, 999.98, "1000.", "%#.4g"}, + {__LINE__, 999.998, "1000", "%.5g"}, + {__LINE__, 999.998, "1000.0", "%#.5g"}, + {__LINE__, 999.9998, "1000", "%g"}, + {__LINE__, 999.9998, "1000.00", "%#g"}, + {__LINE__, 912.98, "913", "%.4g"}, + {__LINE__, 50.999999, "51", "%.5g"}, {0 } -- cgit v1.1