1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37: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:
Sylvestre Ledru 2022-05-01 16:15:25 +02:00 committed by GitHub
commit f869fafd03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

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

View file

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