tests/testthat/test-gamma.R

context("gamma")

test_that("Inputs are kosher", {
  expect_error(GammaParams())
  expect_error(GammaParams(), "No mean was specified")
  expect_error(GammaParams(3), "No CV was specified")

  expect_silent(GammaParams(5, 4))

})
PirateGrunt/momentus documentation built on May 4, 2019, 1:07 p.m.