Nothing
test_that("fail always fails", {
expect_failure(fail())
expect_failure(fail("abc"), "abc")
})
test_that("succeed always succeeds", {
expect_success(succeed())
})
test_that("expect_success errors if null", {
expect_error(expect_success(NULL))
})
test_that("expect_success errors with msg", {
expect_error(expect_success(stop("asdf")), 'asdf')
})
test_that("expect_failure errors if null", {
expect_error(expect_failure(NULL))
})
test_that("expect_failure errors if no failure", {
expect_error(expect_failure(TRUE))
})
test_that("show_failure", {
expect_null(show_failure(NULL))
expect_output(show_failure(expect_true(FALSE)), "FALSE is not TRUE")
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.