tests/testthat/test-expect_custom.R

test_that("expect warns if no `failure_message`", {
  expect_warning(expect_custom(TRUE), "missing, with no default")
})

Try the testdat package in your browser

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

testdat documentation built on Sept. 4, 2023, 1:06 a.m.