Skip to content

Commit

Permalink
* stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
Browse files Browse the repository at this point in the history
2007-07-31  Jakub Jelinek  <jakub@redhat.com>

	* stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
  • Loading branch information
Jakub Jelinek committed Jul 31, 2007
1 parent 087ef75 commit bbeaaa8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 12 additions & 0 deletions stdio-common/tfformat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down

0 comments on commit bbeaaa8

Please sign in to comment.