tests/testthat/test_Surv.R

testthat::context("survival::Surv and popEpi::Surv harmony")




testthat::test_that("survival::Surv and popEpi::Surv's formals are in harmony",{
  
  popepi_formals <- as.list(formals(popEpi::Surv))
  survival_formals <- as.list(formals(survival::Surv))
  testthat::expect_identical(
    object = popepi_formals,
    expected = survival_formals
  )
  
})
WetRobot/popEpi documentation built on May 13, 2024, 8:25 a.m.