Additional test.

This commit is contained in:
Gav Wood 2016-01-13 19:00:19 +01:00
parent 5cc5e7780c
commit 3a1d829b1d

View File

@ -550,6 +550,8 @@ mod tests {
assert_eq!(H64::from(0x1234567890abcdef), H64::from("0x1234567890abcdef"));
assert_eq!(H64::from(0x1234567890abcdef), H64::from("1234567890abcdef"));
assert_eq!(H64::from(0x234567890abcdef), H64::from("0x234567890abcdef"));
// too short.
assert_eq!(H64::from(0), H64::from("0x34567890abcdef"));
}
}