mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
cksum: improve the blake2b detection algo corner case
This commit is contained in:
parent
db58d2b6b5
commit
514d810371
2 changed files with 23 additions and 1 deletions
|
@ -1119,6 +1119,28 @@ fn test_blake2b_bits() {
|
|||
.stderr_contains("f: no properly formatted checksum lines found");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_bsd_case() {
|
||||
let scene = TestScenario::new(util_name!());
|
||||
let at = &scene.fixtures;
|
||||
at.write("f", "bSD (README.md) = 0000\n");
|
||||
|
||||
scene
|
||||
.ucmd()
|
||||
.arg("-c")
|
||||
.arg("f")
|
||||
.fails()
|
||||
.stderr_contains("f: no properly formatted checksum lines found");
|
||||
at.write("f", "BsD (README.md) = 0000\n");
|
||||
|
||||
scene
|
||||
.ucmd()
|
||||
.arg("-c")
|
||||
.arg("f")
|
||||
.fails()
|
||||
.stderr_contains("f: no properly formatted checksum lines found");
|
||||
}
|
||||
|
||||
#[ignore = "Different output"]
|
||||
#[test]
|
||||
fn test_blake2d_tested_with_sha1() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue