mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
ls: some more tests for ignore & hide
This commit is contained in:
parent
d68959d696
commit
a50eae76a4
1 changed files with 21 additions and 1 deletions
|
@ -1315,6 +1315,26 @@ fn test_ls_ignore_hide() {
|
|||
.succeeds()
|
||||
.stdout_is("some_other_file\n");
|
||||
|
||||
scene
|
||||
.ucmd()
|
||||
.arg("--hide")
|
||||
.arg("README*")
|
||||
.arg("--ignore")
|
||||
.arg("CONTRIBUTING*")
|
||||
.arg("-1")
|
||||
.succeeds()
|
||||
.stdout_is("some_other_file\n");
|
||||
|
||||
scene
|
||||
.ucmd()
|
||||
.arg("--hide")
|
||||
.arg("README*")
|
||||
.arg("--hide")
|
||||
.arg("CONTRIBUTING*")
|
||||
.arg("-1")
|
||||
.succeeds()
|
||||
.stdout_is("some_other_file\n");
|
||||
|
||||
// Invalid patterns
|
||||
scene
|
||||
.ucmd()
|
||||
|
@ -1326,7 +1346,7 @@ fn test_ls_ignore_hide() {
|
|||
|
||||
scene
|
||||
.ucmd()
|
||||
.arg("--ignore")
|
||||
.arg("--hide")
|
||||
.arg("READ[ME")
|
||||
.arg("-1")
|
||||
.succeeds()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue