From 9548eff379604a911560947af7af4b834ec76f70 Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Sat, 3 Sep 2022 00:44:53 -0700 Subject: [PATCH] Different error message for simd --- arrow/src/compute/kernels/arithmetic.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arrow/src/compute/kernels/arithmetic.rs b/arrow/src/compute/kernels/arithmetic.rs index 9e731f3f653..54d238459ad 100644 --- a/arrow/src/compute/kernels/arithmetic.rs +++ b/arrow/src/compute/kernels/arithmetic.rs @@ -2027,7 +2027,10 @@ mod tests { } #[test] + #[cfg(not(feature = "simd"))] #[should_panic(expected = "Overflow happened")] + #[cfg(feature = "simd")] + #[should_panic(expected = "DivideByZero")] fn test_primitive_array_divide_by_zero() { let a = Int32Array::from(vec![15]); let b = Int32Array::from(vec![0]);