# test-clear.r
test_that( "clear", {
context('clear')
# if( exists('h') ) rm(h)
h <- hash( letters, 1 )
h %>% expect_is("hash")
h %>% length %>% expect_equal(26)
clear(h)
h %>% length %>% expect_equal(0)
rm(h)
exists('h') %>% expect_false()
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.