tests/testthat/test-error_handler.R

test_that("a cppad error creates an R error", {
  # this should error even when NDEBUG is defined because the CppAD Macros that silence the erroring do so before calling the handler
  expect_error(test_Rcpphandler())
})

Try the scorematchingad package in your browser

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

scorematchingad documentation built on April 4, 2025, 12:15 a.m.