summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordana <dana@dana.is>2019-08-01 16:08:58 -0500
committerAndrew Gallant <jamslam@gmail.com>2019-08-01 17:08:58 -0400
commitc2cb0a4de4597c8f911c8ebece6aa0435ef5da6f (patch)
tree130944b7519d3a089444d0ec3695e21c12ec95f7 /tests
parentadb9332f52b884c8b872d1c969a7841188fe3089 (diff)
ripgrep: add --glob-case-insensitive
This flag forces -g/--glob patterns to be treated case-insensitively, as with --iglob patterns. Fixes #1293
Diffstat (limited to 'tests')
-rw-r--r--tests/misc.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/misc.rs b/tests/misc.rs
index 8c162674..c122f5f5 100644
--- a/tests/misc.rs
+++ b/tests/misc.rs
@@ -341,6 +341,14 @@ rgtest!(glob_case_sensitive, |dir: Dir, mut cmd: TestCommand| {
eqnice!("file2.html:Sherlock\n", cmd.stdout());
});
+rgtest!(glob_always_case_insensitive, |dir: Dir, mut cmd: TestCommand| {
+ dir.create("sherlock", SHERLOCK);
+ dir.create("file.HTML", "Sherlock");
+ cmd.args(&["--glob-case-insensitive", "--glob", "*.html", "Sherlock"]);
+
+ eqnice!("file.HTML:Sherlock\n", cmd.stdout());
+});
+
rgtest!(byte_offset_only_matching, |dir: Dir, mut cmd: TestCommand| {
dir.create("sherlock", SHERLOCK);
cmd.arg("-b").arg("-o").arg("Sherlock");