1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

Merge pull request #8151 from cakebaker/cksum_remove_duplicate_unit_tests

cksum: remove duplicate unit test
This commit is contained in:
Sylvestre Ledru 2025-06-11 14:24:59 +02:00 committed by GitHub
commit ac1eb5ac28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -468,18 +468,3 @@ pub fn uu_app() -> Command {
)
.after_help(get_message("cksum-after-help"))
}
#[cfg(test)]
mod tests {
use crate::calculate_blake2b_length;
#[test]
fn test_calculate_length() {
assert_eq!(calculate_blake2b_length(256).unwrap(), Some(32));
assert_eq!(calculate_blake2b_length(512).unwrap(), None);
assert_eq!(calculate_blake2b_length(256).unwrap(), Some(32));
calculate_blake2b_length(255).unwrap_err();
calculate_blake2b_length(33).unwrap_err();
calculate_blake2b_length(513).unwrap_err();
}
}