Fix the remaining curve and field tests (#118)

* push

* push

* cargo ready

Co-authored-by: onewayfunc <onewayfunc@gmail.com>
This commit is contained in:
Weikeng Chen
2022-09-03 00:34:13 -07:00
committed by GitHub
parent 3c4c67f114
commit dc555882cd
29 changed files with 148 additions and 548 deletions

View File

@@ -1,17 +1,4 @@
use ark_algebra_test_templates::curves::{curve_tests, sw_tests};
use ark_ec::AffineRepr;
use crate::Projective;
use ark_algebra_test_templates::*;
use crate::{Affine, Projective, VestaParameters};
#[test]
fn test_projective_curve() {
curve_tests::<Projective>();
sw_tests::<VestaParameters>();
}
#[test]
fn test_generator() {
let generator = Affine::prime_subgroup_generator();
assert!(generator.is_on_curve());
assert!(generator.is_in_correct_subgroup_assuming_on_curve());
}
test_group!(g1; Projective; sw);