tests/testthat/test-calc_act_cpp.R

context("calc_act_cpp")

test_that("use", {

  testthat::expect_error(
    tracerer:::calc_act_cpp(sample = seq(1, 10), sample_interval = 0),
    "sample interval must be at least one"
  )

})
ropensci/tracerer documentation built on March 12, 2019, 8:30 p.m.