mirror of
https://github.com/sharkdp/fd
synced 2024-10-04 14:59:15 +00:00
Merge pull request #1200 from tmccombs/more-resilient-full-path-tests
Change full path tests to be more resilient
This commit is contained in:
commit
614e637dbc
|
@ -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