test_that("log can set and get", {
reset_log()
add_to_log(
test = 1,
attempt = 1,
reason = "testing logs"
)
expected <- tibble::tibble(
test = 1,
attempt = 1,
reason = "testing logs",
details = NA_character_
)
expect_equal(get_log(), expected)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.