diff options
Diffstat (limited to 'trie/trie_test.go')
-rw-r--r-- | trie/trie_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/trie/trie_test.go b/trie/trie_test.go index 5559f807d..43cd6c145 100644 --- a/trie/trie_test.go +++ b/trie/trie_test.go @@ -327,6 +327,13 @@ func (s *TrieSuite) TestBeginsWith(c *checker.C) { c.Assert(BeginsWith(b, a), checker.Equals, true) } +func (s *TrieSuite) TestItems(c *checker.C) { + s.trie.Update("A", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") + exp := "d23786fb4a010da3ce639d66d5e904a11dbc02746d1ce25029e53290cabf28ab" + + c.Assert(s.trie.GetRoot(), checker.DeepEquals, ethutil.Hex2Bytes(exp)) +} + /* func TestRndCase(t *testing.T) { _, trie := NewTrie() |