tests/testthat/test_plotIT.R

context("plotIT")
library(modi)

test_that("Plot of infection times of Epidemic Algorithm", {
  it <- c(rep(NA, 3), rep(1:7, times=c(1, 4, 10, 8, 5, 3, 2)))
  wt <- rep(c(1,2,5), times=12)
  pout <- plotIT(it, wt, 6)
  expect_null(pout)
})

Try the modi package in your browser

Any scripts or data that you put into this service are public.

modi documentation built on March 31, 2023, 8:35 p.m.