context("give_age")
test_that("give_age return int", {
expect_is(give_age(), "integer")
})
test_that("give_age doesn't accept other units",{
expect_error(give_age(unit = "blabla"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.