tests/testthat/test-zap-empty.R

context("zap_empty")

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 Nov. 27, 2018, 9:28 p.m.