summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-11-19 20:15:41 -0500
committerAndrew Gallant <jamslam@gmail.com>2016-11-19 20:15:41 -0500
commit03f76053228b646a7febed3853ab28f42b83b1ad (patch)
tree6fa5ce01f818d683e732bbd2268a89223b27e3f5 /tests
parent61663e230782ecee05cde8d9cc44d34d6eb9c8c7 (diff)
Rename --files-without-matches to --files-without-match.
This is to be consistent with grep.
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 66c2e51c..47169191 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -339,9 +339,10 @@ sherlock!(files_with_matches, "Sherlock", ".", |wd: WorkDir, mut cmd: Command| {
assert_eq!(lines, expected);
});
-sherlock!(files_without_matches, "Sherlock", ".", |wd: WorkDir, mut cmd: Command| {
+sherlock!(files_without_matches, "Sherlock", ".",
+|wd: WorkDir, mut cmd: Command| {
wd.create("file.py", "foo");
- cmd.arg("--files-without-matches");
+ cmd.arg("--files-without-match");
let lines: String = wd.stdout(&mut cmd);
let expected = "file.py\n";
assert_eq!(lines, expected);
@@ -1070,7 +1071,7 @@ sherlock!(feature_89_files_with_matches, "Sherlock", ".",
sherlock!(feature_89_files_without_matches, "Sherlock", ".",
|wd: WorkDir, mut cmd: Command| {
wd.create("file.py", "foo");
- cmd.arg("--null").arg("--files-without-matches");
+ cmd.arg("--null").arg("--files-without-match");
let lines: String = wd.stdout(&mut cmd);
assert_eq!(lines, "file.py\x00");