aboutsummaryrefslogtreecommitdiffstats
path: root/trie/encoding_test.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-12-18 19:40:01 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-12-18 19:40:01 +0800
commitfd69d2b7a87d9f00854e7d8939a6b3ab53cf8c9b (patch)
tree4d383884e36cf921bdfcfab40235488a60d2729c /trie/encoding_test.go
parent2baf1de00df56dee47161ad763788a92693b9c29 (diff)
parentef422ee1e1eef831c681aaec31ce7da23b12ae6d (diff)
downloaddexon-fd69d2b7a87d9f00854e7d8939a6b3ab53cf8c9b.tar
dexon-fd69d2b7a87d9f00854e7d8939a6b3ab53cf8c9b.tar.gz
dexon-fd69d2b7a87d9f00854e7d8939a6b3ab53cf8c9b.tar.bz2
dexon-fd69d2b7a87d9f00854e7d8939a6b3ab53cf8c9b.tar.lz
dexon-fd69d2b7a87d9f00854e7d8939a6b3ab53cf8c9b.tar.xz
dexon-fd69d2b7a87d9f00854e7d8939a6b3ab53cf8c9b.tar.zst
dexon-fd69d2b7a87d9f00854e7d8939a6b3ab53cf8c9b.zip
Merge pull request #2019 from zsfelfoldi/light-state
Light state
Diffstat (limited to 'trie/encoding_test.go')
-rw-r--r--trie/encoding_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/trie/encoding_test.go b/trie/encoding_test.go
index 061d48d58..2f125ef2f 100644
--- a/trie/encoding_test.go
+++ b/trie/encoding_test.go
@@ -57,6 +57,12 @@ func (s *TrieEncodingSuite) TestCompactHexDecode(c *checker.C) {
c.Assert(res, checker.DeepEquals, exp)
}
+func (s *TrieEncodingSuite) TestCompactHexEncode(c *checker.C) {
+ exp := []byte("verb")
+ res := compactHexEncode([]byte{7, 6, 6, 5, 7, 2, 6, 2, 16})
+ c.Assert(res, checker.DeepEquals, exp)
+}
+
func (s *TrieEncodingSuite) TestCompactDecode(c *checker.C) {
// odd compact decode
exp := []byte{1, 2, 3, 4, 5}