moth/pkg/transpile/inventory_test.go

17 lines
276 B
Go
Raw Normal View History

2020-09-08 17:49:02 -06:00
package transpile
import "testing"
func TestInventory(t *testing.T) {
fs := newTestFs()
inv, err := FsInventory(fs)
if err != nil {
t.Error(err)
}
if c, ok := inv["cat0"]; !ok {
t.Error("No cat0")
} else if len(c) != 9 {
t.Error("Wrong category length", c)
}
}