Only test debug assertion in batch_invert when debug assertions are enabled.

This commit is contained in:
Sean Bowe 2018-07-01 02:16:19 -06:00
parent 02af12b81a
commit c4f86b231c
No known key found for this signature in database
GPG key ID: 95684257D8F8B031

View file

@ -1136,6 +1136,7 @@ mod test {
assert_eq!(parsed, X);
}
#[cfg(debug_assertions)]
#[test]
#[should_panic]
fn batch_invert_with_a_zero_input_panics() {