tests/testthat/test-tttr.R

test_that("null file_path throws error", {
  expect_warning(score(), )

})

test_that("tttr runs correctly", {
  expect_equal({
    tttr_scores <- tttr(test_path("testdata", "Readings.csv"))
    mean(tttr_scores$max_tttr)
  }, 
  1.638
  )
})

Try the tpm package in your browser

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

tpm documentation built on June 22, 2024, 11:28 a.m.