1
Fork 0
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:
Terts Diepraam 2023-11-17 14:46:38 +01:00
parent 4aafb3f88b
commit 955640aac8
2 changed files with 198 additions and 9 deletions

View file

@ -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");
}