tests/testthat/test-generateRandomCodonsPerAA.R

test_that("generateRandomCodonsPerAA works for example AA seq", {
  x <- generateRandomCodonsPerAA('Lys')
  x <- x %in% c("AAA", "AAG")
  expect_equal(x, TRUE)
})


test_that("calculateHZEIint works for example sequence", {
  x <- generateRandomCodonsPerAA(c('Lys','Lys'))
  expect_is(x, "character")
})
caggtaagtat/ModCon documentation built on March 12, 2021, 4:12 a.m.