huff/huffman_test.go

14 lines
233 B
Go
Raw Normal View History

2014-04-13 14:18:11 +00:00
package huff
2014-10-02 16:00:23 +00:00
import "testing"
2014-04-13 14:18:11 +00:00
func TestNode(t *testing.T) {
2014-10-02 16:00:23 +00:00
// Paths defined in words_test.go
2014-04-13 23:53:47 +00:00
w := GetWeights(Paths, "/")
2014-10-02 16:00:23 +00:00
pt := NewWordTree(w.Sorted())
t.Logf("%#v\n", pt)
if pt == nil {
t.Error("Failed to build trie")
}
2014-04-13 14:18:11 +00:00
}