tests/testthat/test-summary.R

test_that("summary.mcmcarray", {
  expect_equal(
    summary(mcmcr_example$alpha),
    structure(list(
      estimates = c(3.718025, 4.718025), nchains = 2L,
      niters = 400L
    ), class = "summary.mcmcarray")
  )
})

test_that("summary.mcmcr", {
  expect_s3_class(summary(mcmcr_example), "summary.mcmcr")
})

Try the mcmcr package in your browser

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

mcmcr documentation built on Sept. 7, 2021, 1:07 a.m.