diff --git a/tooling/nargo_cli/src/cli/compile_cmd.rs b/tooling/nargo_cli/src/cli/compile_cmd.rs index ed1a77ed4da..5c92e160185 100644 --- a/tooling/nargo_cli/src/cli/compile_cmd.rs +++ b/tooling/nargo_cli/src/cli/compile_cmd.rs @@ -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 );