1
Fork 0
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:
Eli Youngs 2022-02-05 00:43:09 -08:00
parent af8bcd8d52
commit 162f85773e
2 changed files with 18 additions and 1 deletions

View file

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