test_that("stringStartsWith() works", {
expect_identical(
stringStartsWith(c("abc", "Kabeljau", "Arabella"), "ab"),
c(TRUE, FALSE, FALSE)
)
expect_identical(
stringStartsWith(c("abc", "Kabeljau", "Arabella"), "A"),
c(FALSE, FALSE, TRUE)
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.