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 Aug. 30, 2018, 5:14 p.m.