mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 22:02:43 +00:00
Add a test case for printf("%5.0f", 0.001).
This commit is contained in:
parent
81ae2e9a4d
commit
3b74a935d6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113469
@ -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