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)
})
martinSter/modi documentation built on March 14, 2023, 12:09 p.m.