test_that("get_hash works for one element", {
setup_new_env()
expect_equal(get_hash(1), 1)
})
test_that("get_hash works for a vector", {
setup_new_env()
expect_equal(get_hash(5), 1:5)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.