huff/huffman_test.go
2014-04-13 10:18:11 -04:00

20 lines
511 B
Go

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)
}