Added unit test file for greedyPopMix functions (#2)
This commit is contained in:
parent
1462f6167f
commit
98cff11128
1 changed files with 11 additions and 0 deletions
11
tests/testthat/test-greedyPopMix.R
Normal file
11
tests/testthat/test-greedyPopMix.R
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
context("greedyPopMix functions")
|
||||
|
||||
test_that("Auxiliary functions work properly", {
|
||||
x <- matrix(11:16, 3)
|
||||
y <- matrix(2:7, 3)
|
||||
z <- list(
|
||||
popnames2 = matrix(c(11:13, seq(1.5, 2.5, 0.5)), 3),
|
||||
rowsFromInd = 2
|
||||
)
|
||||
expect_equal(findOutRowsFromInd(x, y, "Diploid"), z)
|
||||
})
|
||||
Loading…
Add table
Reference in a new issue