huff/huffman_test.go

14 lines
233 B
Go

package huff
import "testing"
func TestNode(t *testing.T) {
// Paths defined in words_test.go
w := GetWeights(Paths, "/")
pt := NewWordTree(w.Sorted())
t.Logf("%#v\n", pt)
if pt == nil {
t.Error("Failed to build trie")
}
}