nealrichardson commented on a change in pull request #11355:
URL: https://github.com/apache/arrow/pull/11355#discussion_r724985717
##########
File path: r/tests/testthat/test-compute-arith.R
##########
@@ -67,10 +67,14 @@ test_that("Division", {
expect_equal(a %/% 2, Array$create(c(0L, 1L, 1L, 2L, NA_integer_)))
expect_equal(a / 2 / 2, Array$create(c(1:4 / 2 / 2, NA_real_)))
expect_equal(a %/% 2 %/% 2, Array$create(c(0L, 0L, 0L, 1L, NA_integer_)))
+ expect_equal(a / 0, Array$create(c(Inf, Inf, Inf, Inf, NA_real_)))
+ expect_error(a %/% 0)
Review comment:
Let's not assert that this errors because it actually shouldn't error
(so you're asserting behavior we think should change)
--
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]