Merge pull request #1200 from tmccombs/more-resilient-full-path-tests

Change full path tests to be more resilient
This commit is contained in:
David Peter 2022-12-05 09:55:36 +01:00 committed by GitHub
commit 614e637dbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 2 deletions

View File

@ -263,12 +263,26 @@ fn test_and_plus_full_path() {
let te = TestEnv::new(DEFAULT_DIRS, AND_EXTRA_FILES);
te.assert_output(
&["three", "--full-path", "--and", "foo", "--and", "dir"],
&[
"three",
"--full-path",
"--and",
"_foo",
"--and",
r"[/\\]dir",
],
"one/two/three/directory_foo/",
);
te.assert_output(
&["three", "--full-path", "--and", "two", "--and", "dir"],
&[
"three",
"--full-path",
"--and",
r"[/\\]two",
"--and",
r"[/\\]dir",
],
"one/two/three/directory_foo/",
);
}