Skip to content

Commit

Permalink
Tests: make toplevel expect test more robust wrt newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Sep 28, 2023
1 parent fddb353 commit db7a1d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/toplevel_expect/toplevel_expect_test.ml-default
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ let eval_expect_file mapper fname ~file_contents =
List.fold_left phrases ~init:true ~f:(fun acc phrase ->
acc &&
try
Location.reset ();
exec_phrase ppf phrase
with exn ->
Location.report_exception ppf exn;
Expand Down

0 comments on commit db7a1d7

Please sign in to comment.