tests/testthat/test-plot.R

### Test for plot() occumbFit --------------------------------------------------
test_that("plot() has known output for occumbFit)", {
  plot_occumbFit <- function() plot(occumb:::internal_fit)
  vdiffr::expect_doppelganger(
    title = "occumbFit",
    fig = plot_occumbFit
  )
})

### Test for plot() gof --------------------------------------------------------
test_that("plot() has known output for gof", {
  plot_gof <- function() plot(occumb:::gof_ft)
  vdiffr::expect_doppelganger(
    title = "gof",
    fig = plot_gof
  )
})

Try the occumb package in your browser

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

occumb documentation built on June 8, 2025, 12:01 p.m.