tests/testthat/test-rtnorm_dmp.R

test_that("rtnorm_dmp returns warning with NA",{
  expect_warning(
    rtnorm_dmp(n = 1, mean = 1, sd = 0, lower = 1),
    "mean is equal to lower bound - NAs produced"
  )
})

Try the stochLAB package in your browser

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

stochLAB documentation built on Dec. 28, 2022, 1:19 a.m.