context("test-r-water_intake.R")
test_that("water_intake works", {
expect_equal(calculate_water_intake(2500), 2000)
expect_error(calculate_water_intake("2500"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.