Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdidion committed Apr 3, 2024
1 parent 6eb1762 commit 9a2d510
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/test/scala/com/fulcrumgenomics/vcf/DownsampleVcfTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -529,5 +529,33 @@ class DownsampleVcfTest extends UnitSpec {
}
)
}

"DownsampleVcf" should "fail with invalid parameter combinations" in {
assertThrows[IllegalArgumentException] {
new DownsampleVcf(input=inVcf,
output=inVcf,
windowSize=150).execute()
}
assertThrows[IllegalArgumentException] {
new DownsampleVcf(input=inVcf,
output=inVcf,
proportion=Some(0.1),
downsampleToBases=Some(100),
windowSize=150).execute()
}
assertThrows[IllegalArgumentException] {
new DownsampleVcf(input=inVcf,
output=inVcf,
proportion=Some(0.1),
originalBases=Some(100),
windowSize=150).execute()
}
assertThrows[IllegalArgumentException] {
new DownsampleVcf(input=inVcf,
output=inVcf,
originalBases=Some(100),
windowSize=150).execute()
}
}
}

0 comments on commit 9a2d510

Please sign in to comment.