tests/testthat/test-is-na.R

test_that("is.na", {
  expect_identical(is.na(new_term_rcrd()), logical(0))
  expect_identical(is.na(term_rcrd("a")), FALSE)
  expect_identical(is.na(term_rcrd(NA_character_)), TRUE)
})

Try the term package in your browser

Any scripts or data that you put into this service are public.

term documentation built on Sept. 29, 2022, 5:14 p.m.