summaryrefslogtreecommitdiffstats
path: root/tests/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests.rs')
-rw-r--r--tests/tests.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 795c0996..65962c74 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -865,6 +865,16 @@ clean!(regression_184, "test", ".", |wd: WorkDir, mut cmd: Command| {
assert_eq!(lines, "baz:test\n");
});
+// See: https://github.com/BurntSushi/ripgrep/issues/206
+clean!(regression_206, "test", ".", |wd: WorkDir, mut cmd: Command| {
+ wd.create_dir("foo");
+ wd.create("foo/bar.txt", "test");
+ cmd.arg("-g").arg("*.txt");
+
+ let lines: String = wd.stdout(&mut cmd);
+ assert_eq!(lines, format!("{}:test\n", path("foo/bar.txt")));
+});
+
// See: https://github.com/BurntSushi/ripgrep/issues/20
sherlock!(feature_20_no_filename, "Sherlock", ".",
|wd: WorkDir, mut cmd: Command| {