diff options
author | Andrew Gallant <jamslam@gmail.com> | 2016-11-28 17:57:26 -0500 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2016-11-28 17:57:26 -0500 |
commit | 301a3fd71d3a923419d6d3e7604979b314121801 (patch) | |
tree | 9e473a9b2d7aea40ba0b9c78d10b0fb5243fb7a5 /tests | |
parent | d12bdf35a57733184f5db897f685d8626a1a4b18 (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.rs | 7 |
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"); |