tests/testthat/test-cdc.R

test_that("main", {
  
  res <- cdc(exampleAB_50)
  testsum <- sum(res$cdc_be + res$cdc_b)
  expect_equal(testsum, 1929)
  
  
  res <- cdc(exampleAB_50, trend_method = "trisplit")
  testsum <- sum(res$cdc_be + res$cdc_b)
  expect_equal(testsum, 1915)
  
})

Try the scan package in your browser

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

scan documentation built on Aug. 8, 2023, 5:07 p.m.