tests/testthat/test-credit-roles.R

test_that("credit_roles() returns CRediT roles", {
  expect_snapshot(credit_roles())
  expect_snapshot(credit_roles(oxford_spelling = FALSE))
})

# Errors ----

test_that("credit_roles() gives meaningful error messages", {
  expect_snapshot({
    credit_roles(oxford_spelling = 1)
  }, error = TRUE)
})

Try the plume package in your browser

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

plume documentation built on Sept. 12, 2024, 7:31 a.m.