Adjusted unit tests

This commit is contained in:
Waldir Leoncio 2024-09-27 10:47:32 +02:00
parent 5449bef162
commit f70bc93630

View file

@ -66,12 +66,16 @@ test_that("greedyMix() fails successfully", {
test_that("greedyMix() works when it should", {
baps_file <- file.path(path_inst, "BAPS_clustering_diploid.txt")
genepop_file <- file.path(path_inst, "GenePop.txt")
fasta_file <- file.path(path_inst, "FASTA_clustering_haploid.fasta")
greedy_baps <- greedyMix(baps_file, "BAPS")
expect_error(greedy_genepop <- greedyMix(genepop_file, "GenePop")) # TEMP: fails
expect_type(greedy_baps, "list")
expect_length(greedy_baps, 10L)
genepop_file <- file.path(path_inst, "GenePop.txt")
greedy_genepop <- greedyMix(genepop_file, "GenePop")
expect_type(greedy_genepop, "list")
expect_length(greedy_genepop, 10L)
fasta_file <- file.path(path_inst, "FASTA_clustering_haploid.fasta")
})
context("Linkage")