Add invalid input node in testdata

This commit is contained in:
lash
2023-04-06 10:55:11 +01:00
parent a3073f6189
commit 7c1bc78c98
3 changed files with 19 additions and 6 deletions

View File

@@ -43,12 +43,11 @@ func main() {
in = strings.TrimSpace(in)
running, err = en.Exec([]byte(in), ctx)
if err != nil {
fmt.Fprintf(os.Stderr, "execution terminated: %v\n", err)
fmt.Fprintf(os.Stderr, "unexpected termination: %v\n", err)
os.Exit(1)
}
b := bytes.NewBuffer(nil)
en.WriteResult(b)
fmt.Println(b.String())
}
}