tests/testthat/test_detectionP.R

context("detectionP")
test_that("test='detectionP' gives correct errors", {
    sset <- makeExampleSeSAMeDataSet()

    ## normal output is numeric
    ssetc <- sset
    expect_is(detectionPnegEcdf(ssetc), "SigSet")

    ## missing negative control, issue error
    ssetc@ctl <- ssetc@ctl[1:3,]
    expect_error(detectionPnegEcdf(ssetc))
})

Try the sesame package in your browser

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

sesame documentation built on Nov. 15, 2020, 2:08 a.m.