mirror of
https://github.com/dirtbags/moth.git
synced 2025-01-06 12:00:34 -07:00
19 lines
344 B
Go
19 lines
344 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) != 1 {
|
|
t.Error("Wrong inventory:", inv)
|
|
}
|
|
}
|