64-byte hashes and reorg.

This commit is contained in:
Gav Wood 2015-11-26 21:34:28 +01:00
parent 778b143e45
commit ebf9fa21a8
1 changed files with 1 additions and 1 deletions

View File

@ -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");