Test internal/grammar, and allow the root to import it

This commit is contained in:
2026-10-05 12:06:43 +02:00
committed by Lillem4n
parent 46895151c8
commit 41292f9d89
9 changed files with 170 additions and 33 deletions
+2 -1
View File
@@ -29,9 +29,10 @@ func TestPackageImports(t *testing.T) {
}
checked := 0
allowed := map[string][]string{
".": {"internal/drawstate"},
".": {"internal/drawstate", "internal/grammar"},
"cmd/fejkdata": {"."},
"internal/drawstate": nil,
"internal/grammar": nil,
}
seen := map[string]bool{}
err = filepath.WalkDir(".", func(dir string, d fs.DirEntry, err error) error {