tests/testthat/test-def_story.R

test_that("invalid story ID generates error", {
  story_id <- "this is not a valid story ID"
  expect_error(Story$new(story_id))
})

Try the stoRy package in your browser

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

stoRy documentation built on July 9, 2023, 7:46 p.m.