test_that("Unnamed vector", {
expect_output(
object = catVec(c("aaa", "bbb")),
regexp = "\"aaa\","
)
})
test_that("Named vector", {
expect_output(
object = catVec(c("aaa" = "AAA", "bbb" = "BBB")),
regexp = "\"aaa\" = \"AAA\","
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.