mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-07-30 03:51:22 +00:00
bls12_381: Silence clippy::eq_op in tests that trigger it
The tests are explicitly checking that the operator implementations work correctly for equal LHS and RHS.
This commit is contained in:
@@ -823,6 +823,7 @@ fn test_is_on_curve() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::eq_op)]
|
||||
fn test_affine_point_equality() {
|
||||
let a = G1Affine::generator();
|
||||
let b = G1Affine::identity();
|
||||
@@ -834,6 +835,7 @@ fn test_affine_point_equality() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::eq_op)]
|
||||
fn test_projective_point_equality() {
|
||||
let a = G1Projective::generator();
|
||||
let b = G1Projective::identity();
|
||||
@@ -1224,6 +1226,7 @@ fn test_mixed_addition() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::eq_op)]
|
||||
fn test_projective_negation_and_subtraction() {
|
||||
let a = G1Projective::generator().double();
|
||||
assert_eq!(a + (-a), G1Projective::identity());
|
||||
|
@@ -925,6 +925,7 @@ fn test_is_on_curve() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::eq_op)]
|
||||
fn test_affine_point_equality() {
|
||||
let a = G2Affine::generator();
|
||||
let b = G2Affine::identity();
|
||||
@@ -936,6 +937,7 @@ fn test_affine_point_equality() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::eq_op)]
|
||||
fn test_projective_point_equality() {
|
||||
let a = G2Projective::generator();
|
||||
let b = G2Projective::identity();
|
||||
@@ -1452,6 +1454,7 @@ fn test_mixed_addition() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::eq_op)]
|
||||
fn test_projective_negation_and_subtraction() {
|
||||
let a = G2Projective::generator().double();
|
||||
assert_eq!(a + (-a), G2Projective::identity());
|
||||
|
Reference in New Issue
Block a user