mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
printf: fix and test float formatting
This commit is contained in:
parent
4aafb3f88b
commit
955640aac8
2 changed files with 198 additions and 9 deletions
|
@ -251,7 +251,7 @@ fn sub_num_float_e_no_round() {
|
|||
#[test]
|
||||
fn sub_num_float_round() {
|
||||
new_ucmd!()
|
||||
.args(&["two is %f", "1.9999995"])
|
||||
.args(&["two is %f", "1.9999996"])
|
||||
.succeeds()
|
||||
.stdout_only("two is 2.000000");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue