Skip to content

Commit

Permalink
temporary: check what is output by ocamlformat
Browse files Browse the repository at this point in the history
  • Loading branch information
hougesen committed Mar 18, 2024
1 parent 34f465a commit b3043e6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/formatters/ocamlformat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ let add a b = a + b
let snippet = setup_snippet(input, Language::OCaml.to_file_ext())
.expect("it to create a snippet file");

let output = format_using_ocamlformat(snippet.path())
let output = format_using_ocamlformat(snippet.path());

let actual_code = std::fs::read_to_string(snippet.path());

println!("'{actual_code:#?}'");

let output = output
.expect("it to be successful")
.1
.expect("it to be some");
Expand Down

0 comments on commit b3043e6

Please sign in to comment.