Fix test.

This commit is contained in:
Gav Wood 2015-12-02 23:50:14 +01:00
parent 8c9340d3cf
commit f20665c41a

View File

@ -887,9 +887,11 @@ mod tests {
#[test] #[test]
fn test_node_empty_branch() { fn test_node_empty_branch() {
let branch = Node::Branch([&b""[..]; 16], None); let null_rlp = NULL_RLP;
let branch = Node::Branch([&null_rlp; 16], None);
let rlp = branch.encoded(); let rlp = branch.encoded();
let branch2 = Node::decoded(&rlp); let branch2 = Node::decoded(&rlp);
println!("{:?}", rlp);
assert_eq!(branch, branch2); assert_eq!(branch, branch2);
} }