tests/testthat/test-pGammaBin.R

context("Checking Outputs")
test_that("checking value",{
          expect_identical(round(pGammaBin(2,4,0.5,0.4),4),
                           0.4091)
         })

test_that("checking class",{
          expect_that(pGammaBin(2,4,0.5,0.1),
          is_a("numeric"))
          })

test_that("checking length of output",{
          expect_equal(length(pGammaBin(1:2,4,0.5,1)),2)
          })

Try the fitODBOD package in your browser

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

fitODBOD documentation built on Jan. 15, 2023, 5:11 p.m.