tests/testthat/test-calc_CrI.R

samples <- data.frame(value = 1:10, type = "car")

test_that("calc_CrI works as expected with default arguments", {
  expect_snapshot_output(calc_CrI(samples))
})

test_that("calc_CrI works as expected when grouping", {
  expect_snapshot_output(calc_CrI(samples, summarise_by = "type"))
})
epiforecasts/EpiNow2 documentation built on May 13, 2024, 3:11 a.m.