aboutsummaryrefslogtreecommitdiffstats
path: root/trie/trie_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'trie/trie_test.go')
-rw-r--r--trie/trie_test.go55
1 files changed, 2 insertions, 53 deletions
diff --git a/trie/trie_test.go b/trie/trie_test.go
index 207d41f30..3abe56040 100644
--- a/trie/trie_test.go
+++ b/trie/trie_test.go
@@ -1,5 +1,6 @@
package trie
+/*
import (
"bytes"
"encoding/hex"
@@ -337,59 +338,6 @@ func (s *TrieSuite) TestItems(c *checker.C) {
c.Assert(s.trie.GetRoot(), checker.DeepEquals, ethutil.Hex2Bytes(exp))
}
-/*
-func TestRndCase(t *testing.T) {
- _, trie := NewTrie()
-
- data := []struct{ k, v string }{
- {"0000000000000000000000000000000000000000000000000000000000000001", "a07573657264617461000000000000000000000000000000000000000000000000"},
- {"0000000000000000000000000000000000000000000000000000000000000003", "8453bb5b31"},
- {"0000000000000000000000000000000000000000000000000000000000000004", "850218711a00"},
- {"0000000000000000000000000000000000000000000000000000000000000005", "9462d7705bd0b3ecbc51a8026a25597cb28a650c79"},
- {"0000000000000000000000000000000000000000000000000000000000000010", "947e70f9460402290a3e487dae01f610a1a8218fda"},
- {"0000000000000000000000000000000000000000000000000000000000000111", "01"},
- {"0000000000000000000000000000000000000000000000000000000000000112", "a053656e6174650000000000000000000000000000000000000000000000000000"},
- {"0000000000000000000000000000000000000000000000000000000000000113", "a053656e6174650000000000000000000000000000000000000000000000000000"},
- {"53656e6174650000000000000000000000000000000000000000000000000000", "94977e3f62f5e1ed7953697430303a3cfa2b5b736e"},
- }
- for _, e := range data {
- trie.Update(string(ethutil.Hex2Bytes(e.k)), string(ethutil.Hex2Bytes(e.v)))
- }
-
- fmt.Printf("root after update %x\n", trie.Root)
- trie.NewIterator().Each(func(k string, v *ethutil.Value) {
- fmt.Printf("%x %x\n", k, v.Bytes())
- })
-
- data = []struct{ k, v string }{
- {"0000000000000000000000000000000000000000000000000000000000000112", ""},
- {"436974697a656e73000000000000000000000000000000000000000000000001", ""},
- {"436f757274000000000000000000000000000000000000000000000000000002", ""},
- {"53656e6174650000000000000000000000000000000000000000000000000000", ""},
- {"436f757274000000000000000000000000000000000000000000000000000000", ""},
- {"53656e6174650000000000000000000000000000000000000000000000000001", ""},
- {"0000000000000000000000000000000000000000000000000000000000000113", ""},
- {"436974697a656e73000000000000000000000000000000000000000000000000", ""},
- {"436974697a656e73000000000000000000000000000000000000000000000002", ""},
- {"436f757274000000000000000000000000000000000000000000000000000001", ""},
- {"0000000000000000000000000000000000000000000000000000000000000111", ""},
- {"53656e6174650000000000000000000000000000000000000000000000000002", ""},
- }
-
- for _, e := range data {
- trie.Delete(string(ethutil.Hex2Bytes(e.k)))
- }
-
- fmt.Printf("root after delete %x\n", trie.Root)
-
- trie.NewIterator().Each(func(k string, v *ethutil.Value) {
- fmt.Printf("%x %x\n", k, v.Bytes())
- })
-
- fmt.Printf("%x\n", trie.Get(string(ethutil.Hex2Bytes("0000000000000000000000000000000000000000000000000000000000000001"))))
-}
-*/
-
func TestOtherSomething(t *testing.T) {
_, trie := NewTrie()
@@ -445,3 +393,4 @@ func BenchmarkUpdate(b *testing.B) {
trie.Update(fmt.Sprintf("aaaaaaaaaaaaaaa%d", i), "value")
}
}
+*/