tests/testthat/test-queries_internal.R

test_that("list is converted to comma separated string", {
  expect_equal(.implode_to_string(list("aa", "bb")), "aa,bb")
})

test_that("character vector is converted to comma separated string", {
  expect_equal(.implode_to_string(c("aa", "bb")), "aa,bb")
})

test_that("character vectors of length one are not modified", {
  expect_equal(.implode_to_string("aa"), "aa")
})
ropensci/paleobioDB documentation built on March 5, 2024, 3:08 a.m.