tests/testthat/test-rroll.R

test_that("rroll() works", {
  expect_length(rroll(10, 40 * d6), 10)
  expect_length(rroll(0, 40 * d6), 0)
  expect_error(rroll(-1, 40 * d6), "Invalid arguments")
})

Try the droll package in your browser

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

droll documentation built on Aug. 7, 2021, 1:05 a.m.