tests/testthat/test-findLoc.R

test_that("returns named list", {

                chain = list(chain1 = 'alpdxoipoyloiekladxoipoylyl',
                            chain2  = 'kdxoipoylyydxoipoylopldxoipoylac')
                           subchain = 'DXOIPOYL'
                   ll = findLoc(subchain, chain, outlist = TRUE, named = TRUE, all. = TRUE)
                   expect_identical(is.list(ll), TRUE)
                   expect_named(ll, c('chain1', 'chain2'))

})

Try the akin package in your browser

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

akin documentation built on May 19, 2026, 5:07 p.m.