diff options
author | obscuren <geffobscura@gmail.com> | 2014-11-21 01:11:31 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-11-21 01:11:31 +0800 |
commit | 12f1aea38d6f9dd9748a95b2d9ea813ae16277a7 (patch) | |
tree | bb979543f80229244e6d3ebf8ef9c21d7b6f1370 /ptrie/trie_test.go | |
parent | b05e63c34d335e65c8c76ed9a9401b74170db617 (diff) | |
download | go-tangerine-12f1aea38d6f9dd9748a95b2d9ea813ae16277a7.tar.gz go-tangerine-12f1aea38d6f9dd9748a95b2d9ea813ae16277a7.tar.zst go-tangerine-12f1aea38d6f9dd9748a95b2d9ea813ae16277a7.zip |
Fixed iterator for short nodes.
In some cases the iterator didn't properly return the correct key
because it didn't append fields to the reverse lookup.
Diffstat (limited to 'ptrie/trie_test.go')
-rw-r--r-- | ptrie/trie_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ptrie/trie_test.go b/ptrie/trie_test.go index dfc89709d..ba50f50a5 100644 --- a/ptrie/trie_test.go +++ b/ptrie/trie_test.go @@ -122,7 +122,6 @@ func TestEmptyValues(t *testing.T) { } func TestReplication(t *testing.T) { - t.Skip() trie := NewEmpty() vals := []struct{ k, v string }{ {"do", "verb"}, @@ -138,7 +137,7 @@ func TestReplication(t *testing.T) { for _, val := range vals { trie.UpdateString(val.k, val.v) } - trie.Hash() + trie.Commit() trie2 := New(trie.roothash, trie.cache.backend) if string(trie2.GetString("horse")) != "stallion" { |