Skip to content

Commit

Permalink
Different error message for simd
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Sep 3, 2022
1 parent 74d8cc9 commit 9548eff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arrow/src/compute/kernels/arithmetic.rs
Expand Up @@ -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]);
Expand Down

0 comments on commit 9548eff

Please sign in to comment.