tests/testthat/test-BODextract.R

context("Checking the BODextract")
test_that("Length being equal for output list",{
        expect_equal(length(BODextract(sample(0:10,340,replace=TRUE))),2)
        })

test_that("Length being equal to output of Random Variable",{
        expect_equal(length(BODextract(sample(0:10,340,replace=TRUE))$RV),11)
        })
test_that("Length being equal to output of Frequency",{
        expect_equal(length(BODextract(sample(0:10,340,replace=TRUE))$Freq),11)
        })

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.