diff options
author | Andrew Gallant <jamslam@gmail.com> | 2016-09-24 21:51:04 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2016-09-24 21:51:04 -0400 |
commit | 1595f0faf594be5d303b1783857d23a0fda74230 (patch) | |
tree | 054c7c5c6981a14bb1ce80512e9ed4690007ddc2 /tests | |
parent | 8eeb0c0b60da59828a48d995e969bdba5816ea31 (diff) |
Add --smart-case.
It does what it says on the tin.
Closes #70.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index e94ec35f..72f5ab69 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -699,6 +699,18 @@ clean!(feature_68, "test", ".", |wd: WorkDir, mut cmd: Command| { assert_eq!(lines, "foo:test\n"); }); +// See: https://github.com/BurntSushi/ripgrep/issues/70 +sherlock!(feature_70, "sherlock", ".", |wd: WorkDir, mut cmd: Command| { + cmd.arg("--smart-case"); + + let lines: String = wd.stdout(&mut cmd); + let expected = "\ +sherlock:For the Doctor Watsons of this world, as opposed to the Sherlock +sherlock:be, to a very large extent, the result of luck. Sherlock Holmes +"; + assert_eq!(lines, expected); +}); + #[test] fn binary_nosearch() { let wd = WorkDir::new("binary_nosearch"); |