test_that("Percent sign is added",{
expect_equal(.addPercent("a"), "a%")
})
test_that("Message is returned by factors",{
expect_message(.addPercent(as.factor("a")))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.