summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-11-28 17:57:26 -0500
committerAndrew Gallant <jamslam@gmail.com>2016-11-28 17:57:26 -0500
commit301a3fd71d3a923419d6d3e7604979b314121801 (patch)
tree9e473a9b2d7aea40ba0b9c78d10b0fb5243fb7a5 /tests
parentd12bdf35a57733184f5db897f685d8626a1a4b18 (diff)
Detect more uppercase literals for --smart-case.
This changes the uppercase literal detection for the "smart case" functionality. In particular, a character class is considered to have an uppercase literal if at least one of its ranges starts or stops with an uppercase literal. Fixes #229
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 47169191..5c152b99 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -929,6 +929,13 @@ clean!(regression_228, "test", ".", |wd: WorkDir, mut cmd: Command| {
wd.assert_err(&mut cmd);
});
+// See: https://github.com/BurntSushi/ripgrep/issues/229
+clean!(regression_229, "[E]conomie", ".", |wd: WorkDir, mut cmd: Command| {
+ wd.create("foo", "economie");
+ cmd.arg("-S");
+ wd.assert_err(&mut cmd);
+});
+
// See: https://github.com/BurntSushi/ripgrep/issues/7
sherlock!(feature_7, "-fpat", "sherlock", |wd: WorkDir, mut cmd: Command| {
wd.create("pat", "Sherlock\nHolmes");