diff options
author | obscuren <geffobscura@gmail.com> | 2014-11-21 23:48:07 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-11-21 23:48:07 +0800 |
commit | 8cf9ed0ea588e97f2baf0f834248727e8fbca18f (patch) | |
tree | 1777c37c7b25e439ebc4fcbc025b84fc8b813864 /ptrie/trie_test.go | |
parent | 9b8a12b4b53f319f6422a43e43b2274a337d7fec (diff) | |
download | dexon-8cf9ed0ea588e97f2baf0f834248727e8fbca18f.tar dexon-8cf9ed0ea588e97f2baf0f834248727e8fbca18f.tar.gz dexon-8cf9ed0ea588e97f2baf0f834248727e8fbca18f.tar.bz2 dexon-8cf9ed0ea588e97f2baf0f834248727e8fbca18f.tar.lz dexon-8cf9ed0ea588e97f2baf0f834248727e8fbca18f.tar.xz dexon-8cf9ed0ea588e97f2baf0f834248727e8fbca18f.tar.zst dexon-8cf9ed0ea588e97f2baf0f834248727e8fbca18f.zip |
Fixed test
Diffstat (limited to 'ptrie/trie_test.go')
-rw-r--r-- | ptrie/trie_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ptrie/trie_test.go b/ptrie/trie_test.go index ba50f50a5..5b1c64140 100644 --- a/ptrie/trie_test.go +++ b/ptrie/trie_test.go @@ -215,13 +215,13 @@ func TestOutput(t *testing.T) { for i := 0; i < 50; i++ { trie.UpdateString(fmt.Sprintf("%s%d", base, i), "valueeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee") } - trie.Hash() fmt.Println("############################## FULL ################################") fmt.Println(trie.root) + trie.Commit() + fmt.Println("############################## SMALL ################################") trie2 := New(trie.roothash, trie.cache.backend) trie2.GetString(base + "20") - fmt.Println("############################## SMALL ################################") fmt.Println(trie2.root) } |