dev/test-template.R

# Run all tests in this script:
## testthat::test_file(file.path("tests", "testthat", "test-FXN.R"))

# Error testing
test_that("Errors work as desired", {
  expect_error()
})

# Warning testing
test_that("Warnings work as desired", {
  expect_warning()
})

# Message testing
test_that("Messages work as desired", {
  expect_message()
})

# Output testing
test_that("Outputs are as expected", {
  expect_equal()
})
NJLyon-Projects/helpR documentation built on April 13, 2025, 6:11 a.m.