tests/testthat/test-SI_demographics_ode.R

context("SI_demographics_ode")



S_0 <- 999
I_0 <- 1
beta <- 3
mu <- 1/81

parameters <- c(beta = beta, mu = mu)
inits <- c(S = S_0, I = I_0)

test <- SI_demographics_ode(1, inits, parameters)


test_that("SI_demographics_ode can correctly return rates of change over one timestep", {
  skip_on_cran()
  expect_known_output(test, file = "../../tests/test-files/SI_demographics_ode/test-01.rds")
})
seabbs/idmodelr documentation built on Sept. 5, 2022, 11:32 a.m.