Skip to content

Commit

Permalink
test secp256k1_i128_to_i64
Browse files Browse the repository at this point in the history
  • Loading branch information
roconnor-blockstream committed Nov 21, 2022
1 parent 4bc4290 commit d216475
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tests.c
Expand Up @@ -1929,6 +1929,8 @@ void run_int128_test_case(void) {
secp256k1_i128_from_i64(&swz, sb);
load256i128(rswz, &swz);
CHECK(secp256k1_memcmp_var(rsb, rswz, 16) == 0);
/* test secp256k1_i128_to_i64 */
CHECK(secp256k1_i128_to_i64(&swz) == sb);
/* test secp256k1_i128_eq_var */
{
int expect = (uc & 1);
Expand Down

0 comments on commit d216475

Please sign in to comment.