tests/testthat/test-subString.R

data(hiv)

test_that("subString()", {
    expect_true(as.character(subString(hiv,c(1,2),c(3,4))[1]) == "GTATAG")
    expect_true(as.character(subString(Biostrings::DNAStringSet("ATG"),1,2))
    == "AT")
    expect_true(as.character(subString(Biostrings::DNAString("ATG"),1,2))
    == "AT")
})
kullrich/distSTRING documentation built on Dec. 21, 2021, 8:42 a.m.