tests/testthat/test-summary_vlmc.R

test_that("summary reports correctly its content", {
  withr::local_seed(0)
  dts <- sample(c("A", "B", "C"), 100, replace = TRUE)
  model <- vlmc(dts, alpha = 0.5)
  expect_snapshot(summary(model))
  model2 <- vlmc(dts, cutoff = 0.5 + runif(1) / 2)
  expect_snapshot(summary(model2))
})

Try the mixvlmc package in your browser

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

mixvlmc documentation built on June 8, 2025, 12:35 p.m.