mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
cksum: remove duplicate unit test
This commit is contained in:
parent
316466b9d3
commit
0f28db27b8
1 changed files with 0 additions and 15 deletions
|
@ -468,18 +468,3 @@ pub fn uu_app() -> Command {
|
||||||
)
|
)
|
||||||
.after_help(get_message("cksum-after-help"))
|
.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();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue