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")
})

Try the paleobioDB package in your browser

Any scripts or data that you put into this service are public.

paleobioDB documentation built on May 29, 2024, 10:22 a.m.