tests/testthat/test-misc.R

test_that("`names0` fails if `num` is less than 1", {
  num <- 0
  expect_snapshot(error = TRUE,
    names0(num)
  )
})

Try the applicable package in your browser

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

applicable documentation built on Aug. 21, 2022, 1:06 a.m.