diff options
Diffstat (limited to 'tests/tests.rs')
-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 aeacca54..fd60d672 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -432,6 +432,18 @@ sherlock!(context_line_numbers, "world|attached", assert_eq!(lines, expected); }); +sherlock!(max_filesize_parse_error_length, "Sherlock", ".", +|wd: WorkDir, mut cmd: Command| { + cmd.arg("--max-filesize").arg("44444444444444444444"); + wd.assert_err(&mut cmd); +}); + +sherlock!(max_filesize_parse_error_suffix, "Sherlock", ".", +|wd: WorkDir, mut cmd: Command| { + cmd.arg("--max-filesize").arg("45k"); + wd.assert_err(&mut cmd); +}); + sherlock!(ignore_hidden, "Sherlock", ".", |wd: WorkDir, mut cmd: Command| { wd.remove("sherlock"); wd.create(".sherlock", hay::SHERLOCK); |