mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
cksum: fails in case of unknown algo
This commit is contained in:
parent
9c52ca8d55
commit
1b78102a6b
2 changed files with 31 additions and 13 deletions
|
@ -1136,3 +1136,14 @@ fn test_blake2d_tested_with_sha1() {
|
|||
.fails()
|
||||
.stderr_contains("f: no properly formatted checksum lines found");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_unknown_sha() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
at.write("f", "SHA4 (README.md) = 00000000\n");
|
||||
|
||||
ucmd.arg("-c")
|
||||
.arg("f")
|
||||
.fails()
|
||||
.stderr_contains("f: no properly formatted checksum lines found");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue