Skip to content

Commit

Permalink
Diff the debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh committed Dec 4, 2024
1 parent b59cb34 commit 02c53bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tooling/nargo_cli/src/cli/compile_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,12 @@ mod tests {

if verbose {
// Compare where the most likely difference is.
similar_asserts::assert_eq!(
format!("{}", program_1.program),
format!("{}", program_2.program),
"optimization not idempotent for test program '{}'",
package.name
);
assert_eq!(
program_1.program, program_2.program,
"optimization not idempotent for test program '{}'",
Expand Down

0 comments on commit 02c53bd

Please sign in to comment.