This commit is contained in:
Andrew Gallant
2023-10-09 18:23:36 -04:00
parent f7ff34fdf9
commit 9626f16757
14 changed files with 113 additions and 808 deletions

View File

@@ -144,6 +144,18 @@ For the Doctor Watsons of this world, as opposed to the Sherlock
eqnice!(expected, cmd.stdout());
});
rgtest!(word_period, |dir: Dir, mut cmd: TestCommand| {
dir.create("haystack", "...");
cmd.arg("-ow").arg(".").arg("haystack");
let expected = "\
.
.
.
";
eqnice!(expected, cmd.stdout());
});
rgtest!(line, |dir: Dir, mut cmd: TestCommand| {
dir.create("sherlock", SHERLOCK);
cmd.args(&[