tests/testthat/test-illustrations.R

test_that("illustration functions returns ggplot object", {
  expect_is(illustrate_RPS(), "ggplot")
  expect_is(illustrate_forward_chaining(), "ggplot")
})

test_that("illustration functions identify incorrect inputs", {
  expect_error(illustrate_RPS(observed = -1))
  expect_error(illustrate_RPS(mu = -10, sigma = 3))
})

Try the HuraultMisc package in your browser

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

HuraultMisc documentation built on Sept. 6, 2021, 9:09 a.m.