diff options
author | Andrew Gallant <jamslam@gmail.com> | 2016-09-23 17:11:09 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2016-09-23 17:11:09 -0400 |
commit | 6367dd61ba5bd215f99a71564691b14aeab15a4e (patch) | |
tree | 6640c6eea9b6141dc0735a91939f745199b9caea /tests | |
parent | b33e9cba69df670449e79587a0411201962ecc1b (diff) |
Column numbers should start at 1.
ripgrep was documented to do 1-based indexing, so this is a bug and not
a breaking change.
Fixes #18
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index 693c74be..e2aedc33 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -66,8 +66,8 @@ sherlock!(columns, |wd: WorkDir, mut cmd: Command| { cmd.arg("--column"); let lines: String = wd.stdout(&mut cmd); let expected = "\ -57:For the Doctor Watsons of this world, as opposed to the Sherlock -49:be, to a very large extent, the result of luck. Sherlock Holmes +58:For the Doctor Watsons of this world, as opposed to the Sherlock +50:be, to a very large extent, the result of luck. Sherlock Holmes "; assert_eq!(lines, expected); }); @@ -574,10 +574,10 @@ sherlock!(vimgrep, "Sherlock|Watson", ".", |wd: WorkDir, mut cmd: Command| { let lines: String = wd.stdout(&mut cmd); let expected = "\ -sherlock:1:15:For the Doctor Watsons of this world, as opposed to the Sherlock -sherlock:1:56:For the Doctor Watsons of this world, as opposed to the Sherlock -sherlock:3:48:be, to a very large extent, the result of luck. Sherlock Holmes -sherlock:5:11:but Doctor Watson has to have it taken out for him and dusted, +sherlock:1:16:For the Doctor Watsons of this world, as opposed to the Sherlock +sherlock:1:57:For the Doctor Watsons of this world, as opposed to the Sherlock +sherlock:3:49:be, to a very large extent, the result of luck. Sherlock Holmes +sherlock:5:12:but Doctor Watson has to have it taken out for him and dusted, "; assert_eq!(lines, expected); }); |