tests/testthat/test_msgfParTda.R

context('msgfParTda: Construction and standard properties')

test_that('constructor works', {
    expect_error(msgfParTda(3))
    expect_error(msgfParTda(c(T,F)))
    expect_error(msgfParTda('test'))
    expect_is(msgfParTda(TRUE), 'msgfParTda')
})

test_that('length works', {
    expect_equal(length(msgfParTda()), 0)
    expect_equal(length(msgfParTda(TRUE)), 1)
})

Try the MSGFplus package in your browser

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

MSGFplus documentation built on Nov. 8, 2020, 6:48 p.m.