tests/testthat/test-strRemoveEmpty.R

test_that("strRemoveEmpty", {
    x <- c("", "a", "b", " ", NA_character_)
    expect_identical(
        object = strRemoveEmpty(x, naOk = TRUE, spacesOk = TRUE),
        expected = c("a", "b", " ", NA_character_)
    )
    expect_identical(
        object = strRemoveEmpty(x, naOk = FALSE, spacesOk = FALSE),
        expected = c("a", "b")
    )
})
acidgenomics/r-acidbase documentation built on June 13, 2025, 7:06 p.m.