Encoding helpers for trie

This commit is contained in:
obscuren
2014-01-01 03:06:52 +01:00
parent 276fa6c799
commit 34d62c380e
2 changed files with 16 additions and 12 deletions

View File

@ -27,18 +27,6 @@ func TestCompactEncode(t *testing.T) {
}
}
// Helper function for comparing slices
func CompareIntSlice(a, b []int) bool {
if len(a) != len(b) {
return false
}
for i, v := range a {
if v != b[i] {
return false
}
}
return true
}
func TestCompactHexDecode(t *testing.T) {
exp := []int{7, 6, 6, 5, 7, 2, 6, 2, 16}