Change full-path tests to work on windows as well

This commit is contained in:
Thayne McCombs 2022-12-03 01:48:27 -07:00
parent 0a575763a1
commit 7ec795cd57
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/",
);
}