tests/testthat/test-reg-segfault.R

##
## Don't segfault!
##

context("reg-segfault")

expect_error(rtruncnorm(1, numeric(0), 1, 0, 1))
expect_error(rtruncnorm(1, 0, numeric(0), 0, 1))
expect_error(rtruncnorm(1, 0, 1, numeric(0), 1))
expect_error(rtruncnorm(1, 0, 1, 0, numeric(0)))

Try the truncnorm package in your browser

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

truncnorm documentation built on March 18, 2018, 2:32 p.m.