Nothing
test_that("stop_bad_type() constructs default `what`", {
expect_snapshot(stop_bad_type(NA, "`NULL`"), error = TRUE)
expect_snapshot(stop_bad_type(NA, "`NULL`", arg = ".foo"), error = TRUE)
expect_snapshot(stop_bad_type(NA, "`NULL`", arg = quote(.foo)), error = TRUE)
})
test_that("stop_bad_element_type() constructs type errors", {
expect_snapshot(stop_bad_element_type(1:3, 3, "a foobaz"), error = TRUE)
expect_snapshot(stop_bad_element_type(1:3, 3, "a foobaz", actual = "a quux"), error = TRUE)
expect_snapshot(stop_bad_element_type(1:3, 3, "a foobaz", arg = "..arg"), error = TRUE)
})
test_that("stop_bad_element_type() accepts `what`", {
expect_snapshot(stop_bad_element_type(1:3, 3, "a foobaz", what = "Result"), error = TRUE)
})
test_that("stop_bad_element_length() constructs error message", {
expect_snapshot(stop_bad_element_length(1:3, 8, 10), error = TRUE)
expect_snapshot(stop_bad_element_length(1:3, 8, 10, arg = ".foo"), error = TRUE)
expect_snapshot(stop_bad_element_length(1:3, 8, 10, arg = ".foo", what = "Result"), error = TRUE)
expect_snapshot(stop_bad_element_length(1:3, 8, 10, arg = ".foo", what = "Result", recycle = TRUE), error = 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.