tests/testthat/test-throw.R

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

Try the rBDAT package in your browser

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

rBDAT documentation built on Oct. 14, 2022, 5:07 p.m.