tests/testthat/test.lengthpep.R

# COMPARED TO ExPASy ProtParam
# http://web.expasy.org/protparam
# SEQUENCE: QWGRRCCGWGPGRRYCVRWC
# Number of amino acids: 20

# CHECK VALUE
test_that("lengthpep function: the computed value is wrong",{
  expect_equal(lengthpep(seq = "QWGRRCCGWGPGRRYCVRWC"),20)
})

# CHECK OUTPUT CLASS
test_that("lengthpep function: the output class is wrong",{
  expect_true(is.numeric(lengthpep(seq = "QWGRRCCGWGPGRRYCVRWC")))
})

Try the Peptides package in your browser

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

Peptides documentation built on May 31, 2023, 9:47 p.m.