mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Add test that an empty vector field inversion returns one.
This commit is contained in:
parent
11b1dc142f
commit
611fc40318
1 changed files with 5 additions and 0 deletions
|
|
@ -1139,6 +1139,11 @@ mod test {
|
|||
Scalar::batch_invert(&mut xs);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn batch_invert_empty() {
|
||||
assert_eq!(Scalar::one(), Scalar::batch_invert(&mut []));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn batch_invert_consistency() {
|
||||
let mut x = Scalar::from_u64(1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue