tests/testthat/test-function-stringList.R

test_that("stringList() works", {
  
  expect_equal(stringList(c("a", "b")), "'a', 'b'")
  expect_equal(stringList(c("a", "b"), collapse = ","), "'a','b'")
  expect_equal(stringList(c("a", "b", "c"), "", "@"), "a@b@c")
})
KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.