summaryrefslogtreecommitdiffstats
path: root/tests/regression.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regression.rs')
-rw-r--r--tests/regression.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/regression.rs b/tests/regression.rs
index 88f2194d..e8c915ae 100644
--- a/tests/regression.rs
+++ b/tests/regression.rs
@@ -706,6 +706,18 @@ rgtest!(r1203_reverse_suffix_literal, |dir: Dir, _: TestCommand| {
eqnice!("153.230000\n", cmd.arg(r"\d\d\d000").arg("test").stdout());
});
+// See: https://github.com/BurntSushi/ripgrep/issues/1223
+rgtest!(r1223_no_dir_check_for_default_path, |dir: Dir, mut cmd: TestCommand| {
+ dir.create_dir("-");
+ dir.create("a.json", "{}");
+ dir.create("a.txt", "some text");
+
+ eqnice!(
+ "a.json\na.txt\n",
+ sort_lines(&cmd.arg("a").pipe(b"a.json\na.txt"))
+ );
+});
+
// See: https://github.com/BurntSushi/ripgrep/issues/1259
rgtest!(r1259_drop_last_byte_nonl, |dir: Dir, mut cmd: TestCommand| {
dir.create("patterns-nonl", "[foo]");