mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
printf: Support leading zeroes with %0n formatting
This commit is contained in:
parent
af8bcd8d52
commit
162f85773e
2 changed files with 18 additions and 1 deletions
|
@ -437,3 +437,11 @@ fn stop_after_additional_escape() {
|
|||
.succeeds()
|
||||
.stdout_only("ABC");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn sub_float_leading_zeroes() {
|
||||
new_ucmd!()
|
||||
.args(&["%010f", "1"])
|
||||
.succeeds()
|
||||
.stdout_only("001.000000");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue