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 Sept. 10, 2017, 12:23 a.m.