test_that("make_snake_case() removes capital letters", {
expect_equal(object = make_snake_case(x_char = c("camelCase")),
expected = c("camelcase"))
})
test_that("make_snake_case() replaces spaces with underscore", {
expect_equal(object = make_snake_case(x_char = c("char with spaces")),
expected = c("char_with_spaces"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.