mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-16 03:36:18 +00:00
Merge pull request #3061 from hbina/hbina-printf-default-left-justify-legth
printf: Default left-justify integer conversion to 1 width
This commit is contained in:
commit
0322d4633e
2 changed files with 13 additions and 1 deletions
|
@ -446,6 +446,14 @@ fn sub_any_specifiers_after_period() {
|
|||
.stdout_only("3");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn unspecified_left_justify_is_1_width() {
|
||||
new_ucmd!()
|
||||
.args(&["%-o"]) //spell-checker:disable-line
|
||||
.succeeds()
|
||||
.stdout_only("0");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn sub_any_specifiers_after_second_param() {
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue