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:
parent
565af8237b
commit
a0bd88b51b
2 changed files with 93 additions and 40 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue