tests/testthat/test_S3.R

prior <- get_prior(samples_LNR)
design <- get_design(samples_LNR)


RNGkind("L'Ecuyer-CMRG")
set.seed(123)
test_that("priorS3", {
  expect_snapshot(prior)
  expect_snapshot(summary(prior))
  vdiffr::expect_doppelganger("prior_plot", plot(prior))
})

test_that("designS3", {
  expect_snapshot(design)
  expect_snapshot(summary(design))
})

Try the EMC2 package in your browser

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

EMC2 documentation built on April 11, 2025, 5:50 p.m.