tests/testthat/test-throw.R

testthat::context("Testing maSAE:::throw()")
testthat::test_that("throw the maSAE exception", {
  error_message <- "hello, testthat"
  string <- "hello, testthat"
  testthat::expect_error(
    maSAE:::throw(string),
    error_message
  )
})

Try the maSAE package in your browser

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

maSAE documentation built on April 12, 2021, 5:06 p.m.