tests/testthat/test_DADTlosForTreatment.R

context("DADTlosForTreatment")

tmp <- tempfile()

setup({

  # writeLines("TEST DATA", tmp)

})
teardown({

  print( readLines(tmp) )
  unlink(tmp)

})


test_that('return mean DADTlosForTreatment', {

  r_dt <- DADTlosForTreatment("1VA53LAPMN")
  expect_known_output(r_dt, tmp, print = TRUE)

})
E-Health/dadR documentation built on July 23, 2019, 9:18 p.m.