tests/testthat/test-CC.R

test_that("the CC vector is of expected length, with both default and changed lag values", {
  expect_equal(length(hmm_cc(system.file("extdata", "1DLHA2-7", package="protHMM"))), 1520)
  expect_equal(length(hmm_cc(system.file("extdata", "1DLHA2-7", package="protHMM"), 5)), 1900)
})

Try the protHMM package in your browser

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

protHMM documentation built on July 9, 2023, 6:10 p.m.