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

This commit is contained in:
das 2003-04-14 11:26:32 +00:00
parent 9f573509fe
commit 110311caae

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);