diff options
| author | Jack O'Connor <[email protected]> | 2020-01-05 15:33:12 -0500 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2020-01-05 19:21:47 -0500 |
| commit | bee430b33557e6a630ee1424efe43a7f7a49c668 (patch) | |
| tree | 12b8b83dcc7be387ff7300e93a79405255ea87fe /b3sum/tests | |
| parent | 952ea944d9d17b45ebb708c1ef499e85bdf5dc02 (diff) | |
make the --length argument require a value
Diffstat (limited to 'b3sum/tests')
| -rw-r--r-- | b3sum/tests/test.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/b3sum/tests/test.rs b/b3sum/tests/test.rs index 8f2e623..92e1c4c 100644 --- a/b3sum/tests/test.rs +++ b/b3sum/tests/test.rs @@ -84,3 +84,12 @@ fn test_derive_key() { .unwrap(); assert_eq!(&*expected, &*output); } + +#[test] +fn test_length_without_value_is_an_error() { + let result = cmd!(b3sum_exe(), "--length") + .stdin_bytes("foo") + .stderr_capture() + .run(); + assert!(result.is_err()); +} |
