tests/testthat/test-s3-warning.R

test_that("warningCondition", {
  expect_snapshot({
    construct(warningCondition("hello"))
    construct(warningCondition("hello", call = quote(a())))
  })
})

Try the constructive package in your browser

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

constructive documentation built on April 3, 2025, 9:39 p.m.