mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Test for (against) octal-looking width
This commit is contained in:
parent
aec63c06fd
commit
c513692bae
1 changed files with 9 additions and 0 deletions
|
@ -650,6 +650,15 @@ fn test_ls_width() {
|
||||||
.stdout_only("test-width-1 test-width-2 test-width-3 test-width-4\n");
|
.stdout_only("test-width-1 test-width-2 test-width-3 test-width-4\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for option in ["-w 06", "-w=06", "--width=06", "--width 06", "--wid=06"] {
|
||||||
|
scene
|
||||||
|
.ucmd()
|
||||||
|
.args(&option.split(' ').collect::<Vec<_>>())
|
||||||
|
.arg("-C")
|
||||||
|
.fails()
|
||||||
|
.stderr_contains("invalid line width");
|
||||||
|
}
|
||||||
|
|
||||||
scene
|
scene
|
||||||
.ucmd()
|
.ucmd()
|
||||||
.arg("-w=bad")
|
.arg("-w=bad")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue