test_that("cause", {
ok <- false("xxx")
expect_s4_class(ok, "goalie")
expect_false(ok)
expect_identical(cause(ok), "xxx")
})
test_that("empty cause", {
expect_error(false())
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.