1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-16 19:56:17 +00:00

Merge pull request #3070 from water-ghosts/printf-0

printf: Support leading zeroes with %0n formatting
This commit is contained in:
Sylvestre Ledru 2022-02-05 21:02:16 +01:00 committed by GitHub
commit 2ffc5f9e13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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");
}