tests/testthat/test-function-removeEmpty2.R

test_that("removeEmpty2() works", {

  f <- kwb.utils::removeEmpty2

  expect_error(f())

  expect_identical(f(c("a", "", "b")), c("a", "b"))
  expect_identical(f(c("a", "b", "c")), c("a", "b", "c"))
})
KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.