tests/testthat/test.aaList.R

test_that("all amino acids are uppercase letters", {
  amino_acids <- aaList()
  expect_true(all(amino_acids %in% LETTERS))
})

test_that("Combining all amino acids is a valid peptide", {
  polypeptide <- paste0(aaList(), collapse = "")
  expect_silent(aaCheck(polypeptide))
})

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.