Skip to content
Myr

Adapt full-path glob test for Windows

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by David Peter · parent eac20a8 · Browse files · 1 file+7 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−1 removed

  • tests:+7 added−1 removed

1 file+7 added−1 removed

modified:tests/tests.rs+7 added-1 removed
271 unmodified lines
272#[test]273fn test_full_path_glob_searches() {274 let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES);275276 #[cfg(not(windows))]277 let pattern = "**/one/**/*.foo";278279 #[cfg(windows)]280 let pattern = "**\\one\\**\\*.foo";281282 te.assert_output(277 &["--glob", "--full-path", "**/one/**/*.foo"],283 &["--glob", "--full-path", pattern],284 "one/b.foo285 one/two/c.foo286 one/two/three/d.foo",287 );
1070 unmodified lines