From 6c21bc7b952b10f2935da02a75905a08aa6f8b32 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Tue, 1 Dec 2015 12:26:20 +0100 Subject: [PATCH] out of order test for trieroot --- src/triehash.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/triehash.rs b/src/triehash.rs index 56df87c55..8be23e210 100644 --- a/src/triehash.rs +++ b/src/triehash.rs @@ -320,11 +320,12 @@ mod tests { } #[test] - fn broken() { + fn out_of_order() { assert!(trie_root(vec![ (vec![0x01u8, 0x23], vec![0x01u8, 0x23]), + (vec![0x81u8, 0x23], vec![0x81u8, 0x23]), (vec![0xf1u8, 0x23], vec![0xf1u8, 0x23]), - ]) != + ]) == trie_root(vec![ (vec![0x01u8, 0x23], vec![0x01u8, 0x23]), (vec![0xf1u8, 0x23], vec![0xf1u8, 0x23]),