Added unit tests (#3)
This commit is contained in:
parent
3cfbe5bfe8
commit
5171a4f179
1 changed files with 8 additions and 0 deletions
|
|
@ -51,3 +51,11 @@ test_that("lakseKlitik() and subfunctions produce expected output", {
|
|||
# TODO: ... and anythin left from findCliques.m
|
||||
# TODO: test lakseKlitik()
|
||||
})
|
||||
|
||||
test_that("testFastaData() produces same output as on MATLAB", {
|
||||
msa <- system.file("ext", "seqs.fa", package = "rBAPS")
|
||||
test_msa <- testFastaData(msa)
|
||||
expect_equal(test_msa$ninds, 515)
|
||||
expect_equal(dim(test_msa$data), c(515, 745))
|
||||
expect_named(table(test_msa$data), c("-9", as.character(1:515)))
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue