1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Add comments and an additional test

This commit is contained in:
Eli Youngs 2022-03-19 14:47:14 -07:00
parent 565af8237b
commit a0bd88b51b
2 changed files with 93 additions and 40 deletions

View file

@ -514,3 +514,11 @@ fn sub_general_round_float_to_integer() {
.succeeds()
.stdout_only("123457");
}
#[test]
fn sub_general_round_float_leading_zeroes() {
new_ucmd!()
.args(&["%g", "1.000009"])
.succeeds()
.stdout_only("1.00001");
}