Skip to content

Commit

Permalink
Remove old test from before docs
Browse files Browse the repository at this point in the history
  • Loading branch information
miroman9364 committed Oct 12, 2023
1 parent 3568f2e commit d02d30f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions file_lib/src/checksum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,3 @@ where D: digest::Digest {
let result = hasher.finalize();
HexString::from_bytes(&result.to_vec()).as_string().to_lowercase()
}

#[cfg(test)]
mod tests {
use crate::checksum;

#[test]
fn can_compute_sha1_checksum() {
let checksum = checksum::compute(b"hello world", checksum::Algorithm::Sha1);
assert_eq!(checksum, "2aae6c35c94fcfb415dbe95f408b9ce91ee846ed");
}
}

0 comments on commit d02d30f

Please sign in to comment.