tests/testthat/test_powerCA.R

library(CAs)
test_that("powerCA works", {
  expect_error(powerCA(5,10000,7), "no construction for this setting")
  ## for u3 > 0
  aus <- powerCA(3,352,2)
  expect_equal(dim(aus), c(49,352))
  expect_true(caverify::ca_verify(aus, 3)$covered)
  ## u4 > 0 for one case only, which alone runs about 3 minutes
  ## kept unchecked
})

Try the CAs package in your browser

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

CAs documentation built on Nov. 29, 2026, 1:06 a.m.