diff options
author | Andrew Gallant <jamslam@gmail.com> | 2016-12-06 17:29:34 -0500 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2016-12-06 17:29:34 -0500 |
commit | d66812102b6184a0dd7d168a3afe2dbf209841cb (patch) | |
tree | aabffcaadc714bbabe7a01a2cb8ec279db2a655a /tests | |
parent | 86f8c3c8183a67ad3f4ced334b2d05373c76e985 (diff) |
Fix leading hypen bug by updating clap.
Fixes #270
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 37e9678d..c21fffc9 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -1263,6 +1263,18 @@ fn regression_64() { assert_eq!(lines, path("foo/abc\n")); } +// See: https://github.com/BurntSushi/ripgrep/issues/270 +#[test] +fn regression_270() { + let wd = WorkDir::new("regression_270"); + wd.create("foo", "-test"); + + let mut cmd = wd.command(); + cmd.arg("-e").arg("-test"); + let lines: String = wd.stdout(&mut cmd); + assert_eq!(lines, path("foo:-test\n")); +} + #[test] fn type_list() { let wd = WorkDir::new("type_list"); |