diff --git a/src/scalar.rs b/src/scalar.rs index 15c8b7c..1708e29 100644 --- a/src/scalar.rs +++ b/src/scalar.rs @@ -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);