context("keycap")
test_that("keycap refuses things", {
expect_error( keycap( "grze" ) )
})
test_that("keycap keeps some metadata", {
ten <- keycap(10)
expect_equal( attr(ten, "char"), "10" )
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.