Commit 6d39308c authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fixed test

parent fb7b5d5d
......@@ -15,12 +15,6 @@ class StatsTest extends TestNGSuite with Matchers {
s1 shouldBe s2
s1.totalReads += 1
s1 should not be s2
s2.totalReads += 1
s1 shouldBe s2
s1.mappingQualityHistogram.add(1)
s1 should not be s2
......@@ -32,10 +26,6 @@ class StatsTest extends TestNGSuite with Matchers {
def testEmpty(): Unit = {
val stats = new Stats()
stats.totalReads shouldBe 0
stats.unmapped shouldBe 0
stats.secondary shouldBe 0
stats.clippingHistogram.countsMap shouldBe empty
stats.insertSizeHistogram.countsMap shouldBe empty
stats.mappingQualityHistogram.countsMap shouldBe empty
......@@ -50,13 +40,10 @@ class StatsTest extends TestNGSuite with Matchers {
val s1 = new Stats()
val s2 = new Stats()
s2.totalReads += 1
s2._3_ClippingHistogram.add(1)
s1.totalReads shouldBe 0
s1._3_ClippingHistogram.get(1) shouldBe None
s1 += s2
s1.totalReads shouldBe 1
s1._3_ClippingHistogram.get(1) shouldBe Some(1)
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment