Nothing
moy <- function(x, y) {
return((x + y) / 2)
}
test_that("moy works", {
expect_identical(moy(2, 2), 2)
expect_identical(moy(2, 0), 1)
})
test_that("moy doesn't work", {
expect_error(moy("a", 2))
expect_error(moy(2))
expect_error(moy(2, "2"))
})
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.