context("hello_world")
test_that("basic tests for hello_world", {
expect_that( hello_world(), equals("Hello, world!"))
expect_that( hello_world("mundo"), equals("Hello, mundo!"))
expect_that( hello_world(""), equals("") )
expect_that( hello_world(1), throws_error())
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.