tests/testthat/test-getNNA.R

### trivial tests of outputs

testthat::test_that("Outputs OK", {
  testthat::expect_equal(getNNA(1:4), 0)
  testthat::expect_equal(getNNA(rep(1, 50)), 0)
  testthat::expect_equal(getNNA(rep(NA, 4)), 4)
})
cpsyctc/CECPfuns documentation built on April 2, 2024, 2:03 a.m.