21 lines
511 B
Go
21 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)
|
||
|
}
|