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