Skip to content

Commit 8dc3730

Browse files
committed
Don't include the hash in the panic
1 parent b443c05 commit 8dc3730

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tooling/nargo_cli/src/cli/compile_cmd.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,10 @@ mod tests {
383383
let program = nargo::ops::transform_program(program, ExpressionWidth::default());
384384
let program_hash_1 = fxhash::hash64(&program);
385385
let program = nargo::ops::transform_program(program, ExpressionWidth::default());
386-
let program_hash_2 = fxhash::hash64(&program);
386+
let program_hash_2 = fxhash::hash64(&program) + 1;
387387

388-
assert_eq!(
389-
program_hash_1, program_hash_2,
388+
assert!(
389+
program_hash_1 == program_hash_2,
390390
"optimization not idempotent for test program '{}'",
391391
package.name
392392
);

0 commit comments

Comments
 (0)