Skip to content

Commit

Permalink
Merge branch 'master' into kh-goto-def-func
Browse files Browse the repository at this point in the history
  • Loading branch information
kobyhallx authored Dec 1, 2023
2 parents f71a439 + 7a58c82 commit 64585f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tooling/nargo_fmt/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@ fn format_{test_name}() {{
let expected_output = r#"{output_source}"#;
let (parsed_module, errors) = noirc_frontend::parse_program(&input);
let (parsed_module, _errors) = noirc_frontend::parse_program(&input);
let config = nargo_fmt::Config::of("{config}").unwrap();
let fmt_text = nargo_fmt::format(&input, parsed_module, &config);
std::fs::write("{output_source_path}", fmt_text.clone());
if std::env::var("UPDATE_EXPECT").is_ok() {{
std::fs::write("{output_source_path}", fmt_text.clone()).unwrap();
}}
similar_asserts::assert_eq!(fmt_text, expected_output);
}}
Expand Down

0 comments on commit 64585f6

Please sign in to comment.