huff/huffman_test.go

21 lines
511 B
Go
Raw Normal View History

2014-04-13 14:18:11 +00:00
package huff
import (
"fmt"
"testing"
)
func TestNode(t *testing.T) {
paths := []string{
"/content/dist/rhel/server/6/$releasever/$relarch/os",
"/content/dist/rhui/server/6/$releasever/$relarch/os",
"/content/beta/rhel/server/6/$releasever/$relarch/os",
"/content/beta/rhel/server/7/$releasever/$relarch/os",
"/content/beta/rhui/server/6/$releasever/$relarch/os",
"/content/beta/rhui/server/7/$releasever/$relarch/os",
}
pt := NewPathTree(paths)
fmt.Printf("%#v\n", pt)
}