Skip to content

Commit

Permalink
Make tera_templates_are_in_sync print generated template
Browse files Browse the repository at this point in the history
Sanity check :/
  • Loading branch information
ellnix committed Feb 22, 2025
1 parent 55b7c3a commit 19db560
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rust-tooling/generate/tests/tera_templates_are_in_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ fn tera_templates_are_in_sync() {

if generated.tests != on_disk {
let diff = difference::Changeset::new(&on_disk, &generated.tests, "");
println!("{diff}");
println!("DIFF: ===\n{diff}");
println!("GENERATED (sanity): ===\n{}", generated.tests);

panic!(
"
The Tera template for exercise '{slug}' is not in sync.
Expand Down

0 comments on commit 19db560

Please sign in to comment.