1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-07 12:30:47 -07:00
moth/cmd/mothd/transpiler_test.go
Neale Pickett ff99f131ea fix test
2021-03-05 14:42:57 -07:00

19 lines
342 B
Go

package main
import (
"testing"
"github.com/spf13/afero"
)
func TestTranspiler(t *testing.T) {
fs := afero.NewBasePathFs(afero.NewOsFs(), "testdata")
p := NewTranspilerProvider(fs)
inv := p.Inventory()
if len(inv) != 1 {
t.Error("Wrong inventory:", inv)
} else if len(inv[0].Puzzles) != 2 {
t.Error("Wrong puzzles:", inv)
}
}