Skip to content

Commit

Permalink
Don't include the hash in the panic
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh committed Dec 3, 2024
1 parent b443c05 commit 8dc3730
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tooling/nargo_cli/src/cli/compile_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,10 @@ mod tests {
let program = nargo::ops::transform_program(program, ExpressionWidth::default());
let program_hash_1 = fxhash::hash64(&program);
let program = nargo::ops::transform_program(program, ExpressionWidth::default());
let program_hash_2 = fxhash::hash64(&program);
let program_hash_2 = fxhash::hash64(&program) + 1;

assert_eq!(
program_hash_1, program_hash_2,
assert!(
program_hash_1 == program_hash_2,
"optimization not idempotent for test program '{}'",
package.name
);
Expand Down

0 comments on commit 8dc3730

Please sign in to comment.