aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-07-31 12:32:17 +0000
committerJakub Jelinek <jakub@redhat.com>2007-07-31 12:32:17 +0000
commitbbeaaa84be3b6f995aca6322e43e7bfaa8df5e01 (patch)
treea624da5d315b1f8d72a50137778fd5e039c8f23c
parent087ef75fd78ebb09a0d4f7f42c8e68d64134f595 (diff)
downloadglibc-bbeaaa84be3b6f995aca6322e43e7bfaa8df5e01.tar
glibc-bbeaaa84be3b6f995aca6322e43e7bfaa8df5e01.tar.gz
glibc-bbeaaa84be3b6f995aca6322e43e7bfaa8df5e01.tar.bz2
glibc-bbeaaa84be3b6f995aca6322e43e7bfaa8df5e01.zip
* stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
2007-07-31 Jakub Jelinek <jakub@redhat.com> * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
-rw-r--r--ChangeLog4
-rw-r--r--stdio-common/tfformat.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a249c88f3a..8433c28a67 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-07-31 Jakub Jelinek <jakub@redhat.com>
+
+ * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
+
2007-07-30 Roland McGrath <roland@redhat.com>
* manual/libc.texinfo: Update copyrights, formatting magic, and
diff --git a/stdio-common/tfformat.c b/stdio-common/tfformat.c
index f9b5f7655b..7704ddde39 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 }