tests/testthat/test-anyx.R

context("any-x")

testthat::test_that("any_x returns NA when it should",{
  testthat::expect_identical(
    any_x(c(NA,NA,NA),value = 1),
    expected = NA
  )
})
martinctc/surveytools documentation built on Nov. 21, 2024, 10:48 p.m.