context("Test the print functions")
library(sillyr)
test_that("silly_print behaves as expected", {
expect_equal(silly_print("hello"), "silly - hello")
expect_equal(silly_print("??"), "silly - ??")
})
test_that("print_silly behaves as expected", {
expect_equal(print_silly("a"), "a - silly")
expect_equal(print_silly("my name is"), "my name is - silly")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.