Skip to content

Commit

Permalink
chore: update should_panic message
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Mar 15, 2024
1 parent abcf1cc commit f31ebe0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions halo2-ecc/src/secp256k1/tests/ecdsa_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,18 @@ fn custom_parameters_ecdsa(sk: u64, msg_hash: u64, k: u64) -> ECDSAInput {
}

#[test]
#[should_panic(expected = "assertion failed: `(left == right)`")]
#[should_panic(
expected = "assertion `left == right` failed\n left: 0x0000000000000000000000000000000000000000000000000000000000000000\n right: 0x0000000000000000000000000000000000000000000000000000000000000001"
)]
fn test_ecdsa_msg_hash_zero() {
let input = custom_parameters_ecdsa(random::<u64>(), 0, random::<u64>());
run_test(input);
}

#[test]
#[should_panic(expected = "assertion failed: `(left == right)`")]
#[should_panic(
expected = "assertion `left == right` failed\n left: 0x0000000000000000000000000000000000000000000000000000000000000000\n right: 0x0000000000000000000000000000000000000000000000000000000000000001"
)]
fn test_ecdsa_private_key_zero() {
let input = custom_parameters_ecdsa(0, random::<u64>(), random::<u64>());
run_test(input);
Expand Down

0 comments on commit f31ebe0

Please sign in to comment.