tests/testthat/test-pp-weibull.R

test_that("pp.weibull", {
  describe("pp.weibull function", {
    it("should throw an error if length of output differs from length of input", {
      data <- c(1, 2, 3)
      result <- pp.weibull(data)
      expect_equal(length(data), length(result))
    })
  })
})

Try the mevr package in your browser

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

mevr documentation built on June 30, 2024, 9:06 a.m.