Skip to content

Commit

Permalink
chore: rename the test into "field_arithmetic"
Browse files Browse the repository at this point in the history
  • Loading branch information
duguorong009 committed Jan 25, 2024
1 parent 5683c2c commit ddfbaee
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/bn256/fq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ impl WithSmallOrderMulGroup<3> for Fq {
#[cfg(test)]
mod test {
use super::*;
crate::field_testing_suite!(Fq, "field");
crate::field_testing_suite!(Fq, "field_arithmetic");
crate::field_testing_suite!(Fq, "conversion");
crate::field_testing_suite!(Fq, "serialization");
crate::field_testing_suite!(Fq, "quadratic_residue");
Expand Down
2 changes: 1 addition & 1 deletion src/bn256/fq12.rs
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ fn test_frobenius() {
#[cfg(test)]
mod test {
use super::*;
crate::field_testing_suite!(Fq12, "field");
crate::field_testing_suite!(Fq12, "field_arithmetic");
// crate::field_testing_suite!(Fq12, "conversion");
// crate::field_testing_suite!(Fq12, "serialization");
// crate::field_testing_suite!(Fq12, "quadratic_residue");
Expand Down
2 changes: 1 addition & 1 deletion src/bn256/fq2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ fn test_frobenius() {
#[cfg(test)]
mod test {
use super::*;
crate::field_testing_suite!(Fq2, "field");
crate::field_testing_suite!(Fq2, "field_arithmetic");
crate::field_testing_suite!(Fq2, "conversion");
crate::field_testing_suite!(Fq2, "serialization");
crate::field_testing_suite!(Fq2, "quadratic_residue");
Expand Down
2 changes: 1 addition & 1 deletion src/bn256/fq6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ fn test_frobenius() {
#[cfg(test)]
mod test {
use super::*;
crate::field_testing_suite!(Fq6, "field");
crate::field_testing_suite!(Fq6, "field_arithmetic");
// crate::field_testing_suite!(Fq6, "conversion");
// crate::field_testing_suite!(Fq6, "serialization");
// crate::field_testing_suite!(Fq6, "quadratic_residue");
Expand Down
2 changes: 1 addition & 1 deletion src/bn256/fr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ impl WithSmallOrderMulGroup<3> for Fr {
#[cfg(test)]
mod test {
use super::*;
crate::field_testing_suite!(Fr, "field");
crate::field_testing_suite!(Fr, "field_arithmetic");
crate::field_testing_suite!(Fr, "conversion");
crate::field_testing_suite!(Fr, "serialization");
crate::field_testing_suite!(Fr, "quadratic_residue");
Expand Down
2 changes: 1 addition & 1 deletion src/pluto_eris/fields/fp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ impl WithSmallOrderMulGroup<3> for Fp {
#[cfg(test)]
mod test {
use super::*;
crate::field_testing_suite!(Fp, "field");
crate::field_testing_suite!(Fp, "field_arithmetic");
crate::field_testing_suite!(Fp, "conversion");
crate::field_testing_suite!(Fp, "serialization");
crate::field_testing_suite!(Fp, "quadratic_residue");
Expand Down
2 changes: 1 addition & 1 deletion src/pluto_eris/fields/fp12.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ fn test_frobenius() {
#[cfg(test)]
mod test {
use super::*;
crate::field_testing_suite!(Fp12, "field");
crate::field_testing_suite!(Fp12, "field_arithmetic");
// crate::field_testing_suite!(Fp12, "conversion");
// crate::field_testing_suite!(Fp12, "serialization");
// crate::field_testing_suite!(Fp12, "quadratic_residue");
Expand Down
2 changes: 1 addition & 1 deletion src/pluto_eris/fields/fp2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ fn test_frobenius() {
#[cfg(test)]
mod test {
use super::*;
crate::field_testing_suite!(Fp2, "field");
crate::field_testing_suite!(Fp2, "field_arithmetic");
crate::field_testing_suite!(Fp2, "conversion");
crate::field_testing_suite!(Fp2, "serialization");
crate::field_testing_suite!(Fp2, "quadratic_residue");
Expand Down
2 changes: 1 addition & 1 deletion src/pluto_eris/fields/fp6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ fn test_frobenius() {
#[cfg(test)]
mod test {
use super::*;
crate::field_testing_suite!(Fp6, "field");
crate::field_testing_suite!(Fp6, "field_arithmetic");
// crate::field_testing_suite!(Fp6, "conversion");
// crate::field_testing_suite!(Fp6, "serialization");
// crate::field_testing_suite!(Fp6, "quadratic_residue");
Expand Down
2 changes: 1 addition & 1 deletion src/pluto_eris/fields/fq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ impl WithSmallOrderMulGroup<3> for Fq {
#[cfg(test)]
mod test {
use super::*;
crate::field_testing_suite!(Fq, "field");
crate::field_testing_suite!(Fq, "field_arithmetic");
crate::field_testing_suite!(Fq, "conversion");
crate::field_testing_suite!(Fq, "serialization");
crate::field_testing_suite!(Fq, "quadratic_residue");
Expand Down
2 changes: 1 addition & 1 deletion src/secp256k1/fp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ extend_field_legendre!(Fp);
#[cfg(test)]
mod test {
use super::*;
crate::field_testing_suite!(Fp, "field");
crate::field_testing_suite!(Fp, "field_arithmetic");
crate::field_testing_suite!(Fp, "conversion");
crate::field_testing_suite!(Fp, "serialization");
crate::field_testing_suite!(Fp, "quadratic_residue");
Expand Down
2 changes: 1 addition & 1 deletion src/secp256k1/fq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ extend_field_legendre!(Fq);
#[cfg(test)]
mod test {
use super::*;
crate::field_testing_suite!(Fq, "field");
crate::field_testing_suite!(Fq, "field_arithmetic");
crate::field_testing_suite!(Fq, "conversion");
crate::field_testing_suite!(Fq, "serialization");
crate::field_testing_suite!(Fq, "quadratic_residue");
Expand Down
2 changes: 1 addition & 1 deletion src/secp256r1/fp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ extend_field_legendre!(Fp);
#[cfg(test)]
mod test {
use super::*;
crate::field_testing_suite!(Fp, "field");
crate::field_testing_suite!(Fp, "field_arithmetic");
crate::field_testing_suite!(Fp, "conversion");
crate::field_testing_suite!(Fp, "serialization");
crate::field_testing_suite!(Fp, "quadratic_residue");
Expand Down
2 changes: 1 addition & 1 deletion src/secp256r1/fq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ extend_field_legendre!(Fq);
#[cfg(test)]
mod test {
use super::*;
crate::field_testing_suite!(Fq, "field");
crate::field_testing_suite!(Fq, "field_arithmetic");
crate::field_testing_suite!(Fq, "conversion");
crate::field_testing_suite!(Fq, "serialization");
crate::field_testing_suite!(Fq, "quadratic_residue");
Expand Down
2 changes: 1 addition & 1 deletion src/tests/field.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#[macro_export]
macro_rules! field_testing_suite {
($field: ident, "field") => {
($field: ident, "field_arithmetic") => {
macro_rules! random_multiplication_tests {
($f: ident, $rng: expr) => {
let _message = format!("multiplication {}", stringify!($f));
Expand Down

0 comments on commit ddfbaee

Please sign in to comment.