tests/testthat/test_msgfParNtt.R

context('msgfParNtt: Construction and standard properties')

test_that('constructor works', {
    expect_error(msgfParNtt(3))
    expect_error(msgfParNtt(-1))
    expect_error(msgfParNtt(0:2))
    expect_error(msgfParNtt('test'))
    expect_is(msgfParNtt(2), 'msgfParNtt')
})

test_that('length works', {
    expect_equal(length(msgfParNtt()), 0)
    expect_equal(length(msgfParNtt(2)), 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.