dragosmg commented on a change in pull request #11355:
URL: https://github.com/apache/arrow/pull/11355#discussion_r727269352



##########
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_)))
+  # TODO add tests for integer division %/% by 0

Review comment:
       I've added the Jira ticket




-- 
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]


Reply via email to