tests/testthat/test-checks.R

test_that("detect errors", {
  expect_error(multboot_checks(c(1, 2, 3), list(1, 2, 3), 1))
  expect_error(multboot_checks(list(1, 2, 3, 4), list(1, 2, 3), 1))
  expect_error(multboot_checks(list(1, 2, 3), list(1, 2, 3), 2))
  expect_error(multboot_checks(list(1, 2, 3), list(1, 2, 3), 1, 95))
})

Try the simul package in your browser

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

simul documentation built on Feb. 23, 2021, 1:06 a.m.