Add a test case for printf("%5.0f", 0.001).

This commit is contained in:
David Schultz 2003-04-14 11:26:32 +00:00
parent 81ae2e9a4d
commit 3b74a935d6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113469

View File

@ -93,6 +93,8 @@ main(int argc, char *argv[])
testfmt("0", "%G", 0.0);
testfmt(" 0", "%3.0Lg", 0.0L);
testfmt(" 0", "%5.0f", 0.001);
testfmt("1.0123e+00", "%.4e", 1.0123456789);
testfmt("1.0123", "%.4f", 1.0123456789);
testfmt("1.012", "%.4g", 1.0123456789);