mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Merge pull request #3460 from tertsdiepraam/fix-dir-vdir-tests
`dir`, `vdir`: fix incorrect regex in tests
This commit is contained in:
commit
f869fafd03
2 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ fn test_default_output() {
|
|||
scene
|
||||
.ucmd()
|
||||
.succeeds()
|
||||
.stdout_does_not_match(&Regex::new("[rwx][^some-file1]").unwrap());
|
||||
.stdout_does_not_match(&Regex::new("[rwx-]{10}.*some-file1$").unwrap());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -51,5 +51,5 @@ fn test_long_output() {
|
|||
.ucmd()
|
||||
.arg("-l")
|
||||
.succeeds()
|
||||
.stdout_matches(&Regex::new("[rwx][^some-file1]").unwrap());
|
||||
.stdout_matches(&Regex::new("[rwx-]{10}.*some-file1$").unwrap());
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ fn test_default_output() {
|
|||
scene
|
||||
.ucmd()
|
||||
.succeeds()
|
||||
.stdout_matches(&Regex::new("[rwx][^some-file1]").unwrap());
|
||||
.stdout_matches(&Regex::new("[rwx-]{10}.*some-file1$").unwrap());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -51,5 +51,5 @@ fn test_column_output() {
|
|||
.ucmd()
|
||||
.arg("-C")
|
||||
.succeeds()
|
||||
.stdout_does_not_match(&Regex::new("[rwx][^some-file1]").unwrap());
|
||||
.stdout_does_not_match(&Regex::new("[rwx-]{10}.*some-file1$").unwrap());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue