From 9414a2f4dbf83d2c2d2882f11821915685135619 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Tue, 7 Mar 2017 00:49:21 -0800 Subject: [PATCH] Remove old tests that aren't so useful any more --- src/curve.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/curve.rs b/src/curve.rs index 47f16dd..7fd4568 100644 --- a/src/curve.rs +++ b/src/curve.rs @@ -1248,26 +1248,6 @@ mod test { assert_eq!(bp16.compress(), BASE16_CMPRSSD); } - /// The basepoint, doubled, minus the basepoint should equal the basepoint. - #[test] - fn ge_sub() { - let p1: ExtendedPoint = constants::BASE_CMPRSSD.decompress().unwrap(); - let p2: ExtendedPoint = BASE2_CMPRSSD.decompress().unwrap(); - let p3: ExtendedPoint = (&p2 - &p1.to_projective_niels()).to_extended(); - - assert_eq!(p1.compress(), p3.compress()); - } - - /// The basepoint plus the identity should equal the basepoint. - #[test] - fn ge_add() { - let p1: ExtendedPoint = constants::BASE_CMPRSSD.decompress().unwrap(); - let p2: ExtendedPoint = ExtendedPoint::identity(); - let p3: ExtendedPoint = (&p1 + &p2.to_projective_niels()).to_extended(); - - assert_eq!(p1.compress(), p3.compress()); - } - #[test] fn AffineNielsPoint_conditional_assign() { let id = AffineNielsPoint::identity();