diff options
Diffstat (limited to 'tests/tests.rs')
-rw-r--r-- | tests/tests.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index 876ee407..37e9678d 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -945,6 +945,29 @@ clean!(regression_251, "привет", ".", |wd: WorkDir, mut cmd: Command| { assert_eq!(lines, "foo:привет\nfoo:Привет\nfoo:ПрИвЕт\n"); }); +// See: https://github.com/BurntSushi/ripgrep/issues/256 +#[cfg(not(windows))] +clean!(regression_256, "test", "foo", |wd: WorkDir, mut cmd: Command| { + wd.create_dir("bar"); + wd.create("bar/baz", "test"); + wd.link_dir("bar", "foo"); + + let lines: String = wd.stdout(&mut cmd); + assert_eq!(lines, "foo/baz:test\n"); +}); + +// See: https://github.com/BurntSushi/ripgrep/issues/256 +#[cfg(not(windows))] +clean!(regression_256_j1, "test", "foo", |wd: WorkDir, mut cmd: Command| { + wd.create_dir("bar"); + wd.create("bar/baz", "test"); + wd.link_dir("bar", "foo"); + cmd.arg("-j1"); + + let lines: String = wd.stdout(&mut cmd); + assert_eq!(lines, "foo/baz:test\n"); +}); + // See: https://github.com/BurntSushi/ripgrep/issues/7 sherlock!(feature_7, "-fpat", "sherlock", |wd: WorkDir, mut cmd: Command| { wd.create("pat", "Sherlock\nHolmes"); |