Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move tests to the subdirectory (develop) #2737

Draft
wants to merge 6 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions curves/src/pasta/curves/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
pub mod pallas;
pub mod vesta;

#[cfg(test)]
mod tests;
3 changes: 0 additions & 3 deletions curves/src/pasta/fields/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,3 @@ pub trait SquareRootField: Field {
/// Sets `self` to be the square root of `self`, if it exists.
fn sqrt_in_place(&mut self) -> Option<&mut Self>;
}

#[cfg(test)]
mod tests;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::pasta::{ProjectivePallas, ProjectiveVesta};
use ark_algebra_test_templates::*;
use mina_curves::pasta::{ProjectivePallas, ProjectiveVesta};

test_group!(g1; ProjectivePallas; sw);
test_group!(g2; ProjectiveVesta; sw);
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::pasta::fields::{Fp as Fr, Fq};
use ark_algebra_test_templates::*;
use mina_curves::pasta::fields::{Fp as Fr, Fq};

test_field!(fq; Fq; mont_prime_field);
test_field!(fr; Fr; mont_prime_field);
3 changes: 0 additions & 3 deletions hasher/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ pub use mina_curves::pasta::Fp;
pub use poseidon::{PoseidonHasherKimchi, PoseidonHasherLegacy};
pub use roinput::ROInput;

#[cfg(test)]
mod tests;

use ark_ff::PrimeField;
use o1_utils::FieldHelpers;

Expand Down
60 changes: 0 additions & 60 deletions hasher/src/tests/mod.rs

This file was deleted.

2 changes: 1 addition & 1 deletion hasher/src/tests/hasher.rs → hasher/tests/hasher.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{create_kimchi, create_legacy, Fp, Hashable, Hasher, ROInput};
use mina_hasher::{create_kimchi, create_legacy, Fp, Hashable, Hasher, ROInput};
use o1_utils::FieldHelpers;
use serde::Deserialize;
use std::{fs::File, path::PathBuf};
Expand Down
Loading