Add a test case for printf("%5.0f", 0.001).
This commit is contained in:
parent
9f573509fe
commit
110311caae
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user