Skip to content

Commit

Permalink
Improve expect_test capture_trimmed_fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Rebours <[email protected]>
  • Loading branch information
NathanReb committed Feb 8, 2024
1 parent 117ee2c commit 9c03282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/expect/expect_test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let run_expect_test file ~f =
let capture_trimmed_fmt printer arg =
let buf = Buffer.create 1024 in
let buf_fmt = Format.formatter_of_buffer buf in
let _ = printer buf_fmt arg in
printer buf_fmt arg;
String.trim (Buffer.contents buf)

let print_loc _ _ ppf (loc : Location.t) =
Expand Down

0 comments on commit 9c03282

Please sign in to comment.