tests/testthat/test-pBetaCorrBin.R

context("Checking Outputs")
test_that("checking value",{
          expect_identical(round(pBetaCorrBin(2,8,0.0005,0.4,1.1),4),
                           0.6501)
         })

test_that("checking class",{
          expect_that(pBetaCorrBin(2,8,0.0005,0.4,1.1),
          is_a("numeric"))
          })

test_that("checking length of output",{
          expect_equal(length(pBetaCorrBin(1:2,8,0.0005,0.4,1.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 June 28, 2024, 9:06 a.m.