Nothing
test_that("summary", {
testthat::skip_on_cran()
SW({
res <- fuzz("list", list(NA, c(1, 2, 3)))
sum <- summary(res)
expect_s3_class(sum,
"data.frame")
expect_named(sum,
c("fun", "what", "res", "msg"))
expect_equal(sum$what,
c("NA", "c(1, 2, 3)"))
})
expect_s3_class(attr(sum, "summary_table"),
"table")
expect_snapshot(summary(res))
expect_snapshot(summary(res, tabulate = FALSE))
})
test_that("print", {
testthat::skip_on_cran()
SW({
expect_output(expect_pass_message(fuzz("list", list(NA, c(1, 2, 3)))),
"OK 2")
expect_output(expect_fail_message(fuzz("ls", list(NA, c(1, 2, 3)))),
"FAIL 2")
res <- fuzz(c("list", "median"), list(NA))
expect_snapshot(print(res))
expect_snapshot(print(res, show_all = 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.