refactor: use struct to define interpreter Options. (#236)

This commit is contained in:
Ludovic Fernandez
2019-07-03 19:46:17 +02:00
committed by Marc Vertes
parent 1948ecf10e
commit dea1f56f38
13 changed files with 62 additions and 61 deletions

View File

@@ -51,7 +51,7 @@ func runCheck(t *testing.T, p string) {
r, w, _ := os.Pipe()
os.Stdout = w
i := interp.New()
i := interp.New(interp.Options{})
i.Name = p
i.Use(interp.Symbols)
i.Use(stdlib.Symbols)