test_that("matrix sum returns an error if its not a matrix",{
x<-matrix(1,2,2)
y<- "hello"
sum_matrix(x)
expect_equal(sum_matrix(x), 4)
expect_error(sum_matrix(y,"Not a"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.