test_that("leftSubstringEquals() works", {
f <- kwb.utils:::leftSubstringEquals
expect_error(f())
expect_true(f("abcde", "abc"))
expect_identical(f(c("abcde", "abdde"), "abc"), c(TRUE, FALSE))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.