diff options
author | Andrew Gallant <jamslam@gmail.com> | 2016-10-10 19:27:12 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2016-10-10 19:27:12 -0400 |
commit | e8645dc8aee910c9ce4b181afeb4ab9ad016670b (patch) | |
tree | 7efaf90b456eecb31f332206768141592e5f36e1 /tests | |
parent | e96d93034a4829250f61b190901a8faf9a1eeb1f (diff) |
style nits
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.rs | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index bf4d3570..965d37a3 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -567,25 +567,6 @@ baz/sherlock:be, to a very large extent, the result of luck. Sherlock Holmes assert_eq!(lines, path(expected)); }); -// Follow symlinks on explicit file arguments. -sherlock!(symlink_explicit_file, "Sherlock", ".", |wd: WorkDir, mut cmd: Command| { - wd.link("sherlock", "sym1"); - wd.link("sherlock", "sym2"); - cmd.arg("sym1"); - cmd.arg("sym2"); - - 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 -sym1:For the Doctor Watsons of this world, as opposed to the Sherlock -sym1:be, to a very large extent, the result of luck. Sherlock Holmes -sym2:For the Doctor Watsons of this world, as opposed to the Sherlock -sym2:be, to a very large extent, the result of luck. Sherlock Holmes -"; - assert_eq!(lines, path(expected)); -}); - sherlock!(unrestricted1, "Sherlock", ".", |wd: WorkDir, mut cmd: Command| { wd.create(".gitignore", "sherlock\n"); cmd.arg("-u"); @@ -801,6 +782,26 @@ clean!(regression_131, "test", ".", |wd: WorkDir, mut cmd: Command| { wd.assert_err(&mut cmd); }); +// See: https://github.com/BurntSushi/ripgrep/issues/137 +sherlock!(regression_137, "Sherlock", ".", |wd: WorkDir, mut cmd: Command| { + wd.link("sherlock", "sym1"); + wd.link("sherlock", "sym2"); + cmd.arg("sym1"); + cmd.arg("sym2"); + cmd.arg("-j1"); + + 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 +sym1:For the Doctor Watsons of this world, as opposed to the Sherlock +sym1:be, to a very large extent, the result of luck. Sherlock Holmes +sym2:For the Doctor Watsons of this world, as opposed to the Sherlock +sym2:be, to a very large extent, the result of luck. Sherlock Holmes +"; + assert_eq!(lines, path(expected)); +}); + // See: https://github.com/BurntSushi/ripgrep/issues/20 sherlock!(feature_20_no_filename, "Sherlock", ".", |wd: WorkDir, mut cmd: Command| { |