1
Fork 0
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:
Terts Diepraam 2021-04-05 12:17:42 +02:00
parent d68959d696
commit a50eae76a4

View file

@ -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()