mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-05 20:30:57 +00:00
Also test points that are not the identity
This commit is contained in:
parent
47143e9114
commit
cf24cb8900
1 changed files with 2 additions and 1 deletions
|
|
@ -1278,7 +1278,8 @@ mod test {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn is_identity() {
|
fn is_identity() {
|
||||||
assert!(ExtendedPoint::identity().is_identity());
|
assert!(ExtendedPoint::identity().is_identity() == true);
|
||||||
|
assert!(constants::BASEPOINT.is_identity() == false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue