From 8dc373000716f2ba05131ecd35593ad0aac05083 Mon Sep 17 00:00:00 2001 From: Akosh Farkash Date: Tue, 3 Dec 2024 22:13:33 +0000 Subject: [PATCH] Don't include the hash in the panic --- tooling/nargo_cli/src/cli/compile_cmd.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 );