tests/testthat/test-lognormal.R

context("lognormal")

test_that("Check inputs", {
  expect_error(LognormalParams())
  expect_error(LognormalParams(), "No mean was specified")
  expect_error(LognormalParams(3), "No CV was specified")

  expect_silent(LognormalParams(5, 4))

})
PirateGrunt/momentus documentation built on Sept. 10, 2017, 12:23 a.m.