64-byte hashes and reorg.
This commit is contained in:
parent
778b143e45
commit
ebf9fa21a8
@ -58,7 +58,7 @@ impl_hash!(Hash2048, 256);
|
||||
impl_hash!(Hash4096, 512);
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
fn hash() {
|
||||
let h = Hash64([0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef]);
|
||||
assert_eq!(Hash64::from_str("0123456789abcdef").unwrap(), h);
|
||||
assert_eq!(format!("{}", h), "0123456789abcdef");
|
||||
|
Loading…
Reference in New Issue
Block a user