Skip to content

Commit

Permalink
Make parsing benchmark fail in case of parse error.
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianoc committed Jul 10, 2020
1 parent 8936885 commit bd30d6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion benchmarks/Benchmark.ml
Expand Up @@ -239,7 +239,9 @@ end = struct

let parseNapkin src filename =
let p = Parser.make src filename in
NapkinscriptParser.parseImplementation p
let structure = NapkinscriptParser.parseImplementation p in
assert(p.diagnostics == []);
structure

let benchmark filename lang action =
let src = IO.readFile filename in
Expand Down

0 comments on commit bd30d6f

Please sign in to comment.