From 933426cf7a0f754a109396b17f8f032907292f3e Mon Sep 17 00:00:00 2001 From: nhtyy Date: Thu, 21 Nov 2024 12:33:21 -0800 Subject: [PATCH] fix: tests --- crates/curves/src/edwards/ed25519.rs | 2 +- crates/curves/src/weierstrass/bls12_381.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/curves/src/edwards/ed25519.rs b/crates/curves/src/edwards/ed25519.rs index cdd49bbf2..c292c5935 100644 --- a/crates/curves/src/edwards/ed25519.rs +++ b/crates/curves/src/edwards/ed25519.rs @@ -182,7 +182,7 @@ mod tests { CompressedEdwardsY(compressed) }; - assert_eq!(point, decompress(&compressed_point)); + assert_eq!(point, decompress(&compressed_point).unwrap()); // Double the point to create a "random" point for the next iteration. point = point.clone() + point.clone(); diff --git a/crates/curves/src/weierstrass/bls12_381.rs b/crates/curves/src/weierstrass/bls12_381.rs index 7128b8d1d..032618e42 100644 --- a/crates/curves/src/weierstrass/bls12_381.rs +++ b/crates/curves/src/weierstrass/bls12_381.rs @@ -192,7 +192,7 @@ mod tests { (result, is_odd) }; - assert_eq!(point, bls12381_decompress(&compressed_point, is_odd)); + assert_eq!(point, bls12381_decompress(&compressed_point, is_odd).unwrap()); // Double the point to create a "random" point for the next iteration. point = point.clone().sw_double();