context("utils")
test_that("punctuate_strings", {
expect_identical(punctuate_strings(c("x")), "x")
expect_identical(punctuate_strings(c("x","y")), "x or y")
expect_identical(punctuate_strings(c("x","y","z")), "x, y or z")
expect_identical(punctuate_strings(c("x","y","z","a")), "x, y, z or a")
expect_identical(punctuate_strings(c("x","y","z","a"), "and"), "x, y, z and a")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.