tests/testthat/test-zap-empty.R

test_that("empty strings replaced with missing", {
  x <- c("", "a", NA)
  expect_equal(zap_empty(x), c(NA, "a", NA))
})
tidyverse/haven documentation built on Oct. 14, 2024, 8:55 a.m.