westonpace commented on issue #35957:
URL: https://github.com/apache/arrow/issues/35957#issuecomment-1599608112
> Also, I am not sure how testing works is it something like this?
I was hoping for something like this:
```
// Divide by zero raises
this->AssertBinopRaises(Power, MakeArray(0), MakeArray(-1),
"integers to negative integer powers are not
allowed");
```
Except it would test adding a decimal (or int or float) with a string and
make sure the resulting error message was `StatusCode::Invalid` and meaningful.
You can add the tests to
`src/arrow/compute/kernels/scalar_arithmetic_test.cc`
Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]