Skip to content

Commit

Permalink
fix: use the exported macro for curve testing
Browse files Browse the repository at this point in the history
  • Loading branch information
duguorong009 committed Jan 19, 2024
1 parent 7c8501d commit 42fb4f1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/bn256/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ impl G1 {
// The reason is that "G2::hash_to_curve" is unimplemented.
// Hence, it causes the panic in "test_hash_to_curve".
#[cfg(test)]
crate::tests::curve::curve_testing_suite!(G1);
crate::curve_testing_suite!(G1);

#[cfg(test)]
mod extra_tests {
Expand Down
2 changes: 1 addition & 1 deletion src/grumpkin/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl G1 {
}

#[cfg(test)]
crate::tests::curve::curve_testing_suite!(G1);
crate::curve_testing_suite!(G1);

#[cfg(test)]
mod extra_tests {
Expand Down
2 changes: 1 addition & 1 deletion src/pluto_eris/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,4 +246,4 @@ new_curve_impl!(
// The reason is that "G2::hash_to_curve" is unimplemented.
// Hence, it causes the panic in "test_hash_to_curve".
#[cfg(test)]
crate::tests::curve::curve_testing_suite!(G1, Eris);
crate::curve_testing_suite!(G1, Eris);
2 changes: 1 addition & 1 deletion src/secp256k1/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ pub(crate) fn iso_map_secp256k1(rp: IsoSecp256k1) -> Secp256k1 {
}

#[cfg(test)]
crate::tests::curve::curve_testing_suite!(Secp256k1);
crate::curve_testing_suite!(Secp256k1);

#[cfg(test)]
mod extra_tests {
Expand Down
2 changes: 1 addition & 1 deletion src/secp256r1/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl Secp256r1 {
}

#[cfg(test)]
crate::tests::curve::curve_testing_suite!(Secp256r1);
crate::curve_testing_suite!(Secp256r1);

#[cfg(test)]
mod extra_tests {
Expand Down
2 changes: 1 addition & 1 deletion src/secq256k1/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ impl Secq256k1 {
}

#[cfg(test)]
crate::tests::curve::curve_testing_suite!(Secq256k1);
crate::curve_testing_suite!(Secq256k1);

0 comments on commit 42fb4f1

Please sign in to comment.