mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-02-01 08:12:14 +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:
parent
394b6f91a9
commit
e15fea2757
@ -823,6 +823,7 @@ fn test_is_on_curve() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[allow(clippy::eq_op)]
|
||||||
fn test_affine_point_equality() {
|
fn test_affine_point_equality() {
|
||||||
let a = G1Affine::generator();
|
let a = G1Affine::generator();
|
||||||
let b = G1Affine::identity();
|
let b = G1Affine::identity();
|
||||||
@ -834,6 +835,7 @@ fn test_affine_point_equality() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[allow(clippy::eq_op)]
|
||||||
fn test_projective_point_equality() {
|
fn test_projective_point_equality() {
|
||||||
let a = G1Projective::generator();
|
let a = G1Projective::generator();
|
||||||
let b = G1Projective::identity();
|
let b = G1Projective::identity();
|
||||||
@ -1224,6 +1226,7 @@ fn test_mixed_addition() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[allow(clippy::eq_op)]
|
||||||
fn test_projective_negation_and_subtraction() {
|
fn test_projective_negation_and_subtraction() {
|
||||||
let a = G1Projective::generator().double();
|
let a = G1Projective::generator().double();
|
||||||
assert_eq!(a + (-a), G1Projective::identity());
|
assert_eq!(a + (-a), G1Projective::identity());
|
||||||
|
@ -925,6 +925,7 @@ fn test_is_on_curve() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[allow(clippy::eq_op)]
|
||||||
fn test_affine_point_equality() {
|
fn test_affine_point_equality() {
|
||||||
let a = G2Affine::generator();
|
let a = G2Affine::generator();
|
||||||
let b = G2Affine::identity();
|
let b = G2Affine::identity();
|
||||||
@ -936,6 +937,7 @@ fn test_affine_point_equality() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[allow(clippy::eq_op)]
|
||||||
fn test_projective_point_equality() {
|
fn test_projective_point_equality() {
|
||||||
let a = G2Projective::generator();
|
let a = G2Projective::generator();
|
||||||
let b = G2Projective::identity();
|
let b = G2Projective::identity();
|
||||||
@ -1452,6 +1454,7 @@ fn test_mixed_addition() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[allow(clippy::eq_op)]
|
||||||
fn test_projective_negation_and_subtraction() {
|
fn test_projective_negation_and_subtraction() {
|
||||||
let a = G2Projective::generator().double();
|
let a = G2Projective::generator().double();
|
||||||
assert_eq!(a + (-a), G2Projective::identity());
|
assert_eq!(a + (-a), G2Projective::identity());
|
||||||
|
Loading…
Reference in New Issue
Block a user