context("pythagoras")
test_that("Pythagoras works", {
expect_equal(Pythagoras(3,4), 5)
expect_error(Pythagoras("Nonsense","More nonsense"),
"Pythagoras: must have two values for arguments"
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.