mirror of
https://github.com/sharkdp/fd.git
synced 2024-09-27 20:41:30 +02:00
Adapt full-path glob test for Windows
This commit is contained in:
parent
eac20a8132
commit
588888112a
@ -273,8 +273,14 @@ fn test_glob_searches() {
|
|||||||
fn test_full_path_glob_searches() {
|
fn test_full_path_glob_searches() {
|
||||||
let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES);
|
let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES);
|
||||||
|
|
||||||
|
#[cfg(not(windows))]
|
||||||
|
let pattern = "**/one/**/*.foo";
|
||||||
|
|
||||||
|
#[cfg(windows)]
|
||||||
|
let pattern = "**\\one\\**\\*.foo";
|
||||||
|
|
||||||
te.assert_output(
|
te.assert_output(
|
||||||
&["--glob", "--full-path", "**/one/**/*.foo"],
|
&["--glob", "--full-path", pattern],
|
||||||
"one/b.foo
|
"one/b.foo
|
||||||
one/two/c.foo
|
one/two/c.foo
|
||||||
one/two/three/d.foo",
|
one/two/three/d.foo",
|
||||||
|
Loading…
Reference in New Issue
Block a user