tests/testthat/test-medic.R

test_that("medic basic input", {
  expect_s3_class(
    medic(
      complications,
      id = id,
      atc = atc,
      timing = first_trimester:third_trimester
    ),
    "medic"
  )
})

test_that("medic with all valid inputs", {
  expect_equal(2 * 2, 4)
})

Try the tame package in your browser

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

tame documentation built on April 12, 2025, 1:40 a.m.