use ark_std::test_rng;
|
|
use rand::Rng;
|
|
|
|
use crate::{Fq, Fr};
|
|
|
|
use ark_curve_tests::fields::*;
|
|
|
|
#[test]
|
|
fn test_fr() {
|
|
let mut rng = test_rng();
|
|
let a: Fr = rng.gen();
|
|
let b: Fr = rng.gen();
|
|
field_test(a, b);
|
|
primefield_test::<Fr>();
|
|
}
|
|
|
|
#[test]
|
|
fn test_fq() {
|
|
let mut rng = test_rng();
|
|
let a: Fq = rng.gen();
|
|
let b: Fq = rng.gen();
|
|
field_test(a, b);
|
|
primefield_test::<Fq>();
|
|
}
|