tests/testthat/test-testing_helpers.R

context("testing helpers")

test_that("makeExampleDataSet produces dataset of the right type", {
    ds.info <- biobroom:::.ds.info
    for (i in 1:nrow(ds.info)) {
        dtype <- ds.info$type[i]
        eclass <- ds.info$class[i]
        obj <- makeExampleDataSet(dtype)
        expect_is(obj, eclass, info=paste("DataSet for type:", dtype))
    }
})

Try the biobroom package in your browser

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

biobroom documentation built on Nov. 8, 2020, 5:20 p.m.