tests/testthat/test-checklists.R

test_that("package_checklist prints the correct checklist items", {
  expect_snapshot(package_checklist())
})

test_that("cran_checklist prints the correct checklist items", {
  expect_snapshot(cran_checklist())
})

test_that("checklist dispatches the correct function based on type", {
  expect_snapshot(checklist(type = "package"))
  expect_snapshot(checklist(type = "CRAN"))
  expect_snapshot(checklist(type = "invalid_type"))
})

Try the packagepal package in your browser

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

packagepal documentation built on Aug. 14, 2023, 5:08 p.m.