tests/testthat/test_msgfParEnzyme.R

context('msgfParEnzyme: Construction and standard properties')

test_that('constructor works', {
    expect_error(msgfParEnzyme(0:3))
    expect_error(msgfParEnzyme(10))
    expect_error(msgfParEnzyme('test'))
    expect_is(msgfParEnzyme(0), 'msgfParEnzyme')
    expect_is(msgfParEnzyme('Trypsin'), 'msgfParEnzyme')
})

test_that('length works', {
    expect_equal(length(msgfParEnzyme()), 0)
    expect_equal(length(msgfParEnzyme(0)), 1)
})
thomasp85/MSGFplus-release documentation built on May 31, 2019, 11:09 a.m.