Skip to content

Commit

Permalink
Fixed tests (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
wleoncio committed Jul 2, 2024
1 parent 00ecfa4 commit e4af251
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/testthat/test-greedyMix.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ raw_bam <- importFile(
data = file.path(path_inst, "bam_example.bam"),
format = "BAM",
)
# TODO: uncomment for testing #24
# raw_baps <- importFile(
# data = file.path(path_inst, "FASTA_clustering_haploid.fasta"),
# format = "FASTA"
# )
raw_baps <- importFile(
data = file.path(path_inst, "FASTA_clustering_haploid.fasta"),
format = "FASTA"
)

test_that("Files are imported correctly", {
expect_equal(dim(raw_fasta), c(5, 99))
Expand All @@ -71,7 +70,7 @@ test_that("Files are imported correctly", {
)
})

test_that("greedyMix() works", {
test_that("greedyMix() fails successfully", {
expect_error(greedyMix(file.path(path_inst, "vcf_example.vcf")))
expect_error(greedyMix(file.path(path_inst, "bam_example.bam")))
})
Expand Down

0 comments on commit e4af251

Please sign in to comment.