context("SI_ode")
S_0 <- 999
I_0 <- 1
beta <- 3
parameters <- c(beta = beta)
inits <- c(S = S_0, I = I_0)
test <- SI_ode(1, inits, parameters)
result <- list(c(S = -2.997, S = 2.997))
test_that("SI_ode can correctly return rates of change over one timestep", {
expect_equal(result, test)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.