mirror of
https://github.com/sharkdp/fd
synced 2024-10-02 22:13:31 +00:00
Change full-path tests to work on windows as well
This commit is contained in:
parent
0a575763a1
commit
7ec795cd57
|
@ -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/",
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue