Skip to content

Commit

Permalink
using 0-based indices in the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
romainfrancois committed Sep 24, 2018
1 parent b391556 commit bfe853d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions r/tests/testthat/test-Array.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ test_that("Array", {
})

test_that("Array supports NA", {
x_int <- array(1:10, NA)
x_int <- array(as.integer(c(1:10, NA)))
x_dbl <- array(as.numeric(c(1:10, NA)))
expect_true(x_int$IsNull(11))
expect_true(x_dbl$IsNull(11))
expect_true(x_int$IsNull(10))
expect_true(x_dbl$IsNull(10))
})

0 comments on commit bfe853d

Please sign in to comment.