context("test fonction squared")
test_that("vecteur en sortie", {
x <- c(2, 3, 3, 9, 5)
res <- squared(x)
expect_length(res, length(x))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.