context("Hash256")
test_that("invalid hashes fail", {
expect_error(Hash256("E08D6E97"), "hash")
})
test_that("class is correct", {
hash <- Hash256("E08D6E9754025BA2534A78707605E0601F03ACE063687A0CA1BDDACFCD1698C7")
expect_is(hash, "Hash256")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.