tests/testthat/test-pKumBin.R

context("Checking Outputs")
test_that("checking value",{
          expect_identical(round(pKumBin(1,8,1.05,1.04),4),
                           0.2149)
         })

test_that("checking class",{
          expect_that(pBetaBin(1,8,1.05,1.04),
          is_a("numeric"))
          })

test_that("checking length of output",{
          expect_equal(length(pBetaBin(1:2,8,1.05,1.04)),2)
          })

Try the fitODBOD package in your browser

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

fitODBOD documentation built on June 28, 2024, 9:06 a.m.