updated trie tests

This commit is contained in:
debris 2015-11-30 16:01:47 +01:00
parent 8e1af0e7ca
commit 43326356d0

View File

@ -143,5 +143,7 @@ fn playpen() {
assert!(t.is_empty());
t.insert(&[0x01u8, 0x23], &[0x01u8, 0x23]);
assert_eq!(*t.root(), hash256(&[ NibblePair::new_raw(vec![0x01u8, 0x23], vec![0x01u8, 0x23])]));
}
assert_eq!(*t.root(), trie_root(vec![
(vec![1u8, 0x23], vec![1u8, 0x23])
]));
}