tests/testthat/helper.R

# ============================================================================ #
# test helpers

# ---------------------------------------------------------------------------- #
# check that an error has the "jute_error" class
expect_jute_error <- function(...) {
  expect_error(..., class = "jute_error")
}

# ---------------------------------------------------------------------------- #
toniprice/jute documentation built on Jan. 11, 2023, 8:23 a.m.