Skip to content

Commit

Permalink
generate regular tests as opposed to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
wkhere committed Apr 26, 2024
1 parent 9a6770a commit 10c1256
Show file tree
Hide file tree
Showing 9 changed files with 234 additions and 559 deletions.
4 changes: 2 additions & 2 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ func Interpret(input []byte, opts ...Option) ([]Block, error) {

prog, pstats, err := parse(inputStr, cf)
if cf.stats {
printPStats(pstats)
printPStats(cf.output, pstats)
}
if err != nil {
return nil, err
}

result, xstats, err := execute(prog, cf)
if cf.stats {
printXStats(xstats)
printXStats(cf.output, xstats)
}
return result, err

Expand Down
Loading

0 comments on commit 10c1256

Please sign in to comment.