tests/testthat/test_Error_Handling.R

context("Error Handling")


# Test stop_if
test_that("stop_if", {
  expect_error(stop_if(TRUE, "message"),
               "message")
  expect_silent(stop_if(FALSE, "message"))
  expect_silent(stop_if(NA, "message"))
})
KO112/KO documentation built on Oct. 2, 2020, 9:21 a.m.