Skip to content

Commit

Permalink
Added some tests to the longestDinuc to cover more edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
yfarjoun committed Aug 21, 2024
1 parent 6ca7733 commit f6ca3fb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/scala/com/fulcrumgenomics/util/SequencesTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ class SequencesTest extends UnitSpec {
Sequences.longestDinuc("AGTGTGT") shouldBe OffsetAndLength(1, 6)
Sequences.longestDinuc("GGGGGGGG") shouldBe OffsetAndLength(0, 8)
Sequences.longestDinuc("AGCGtagCGCGCgcGCTCTCTatCGCGCA") shouldBe OffsetAndLength(6, 10)
Sequences.longestDinuc("ACACACTCTCTCT") shouldBe OffsetAndLength(5, 8)
Sequences.longestDinuc("") shouldBe OffsetAndLength(0, 0)
Sequences.longestDinuc("ccgTATGC") shouldBe OffsetAndLength(0, 2)
Sequences.longestDinuc("ATATCC") shouldBe OffsetAndLength(0, 4)
Sequences.longestDinuc("CCATATCC") shouldBe OffsetAndLength(2, 4)
Sequences.longestDinuc("ATAC") shouldBe OffsetAndLength(0, 2)
Sequences.longestDinuc("AACC") shouldBe OffsetAndLength(0, 2)
Sequences.longestDinuc("ACGTAAAAAATT") shouldBe OffsetAndLength(4, 6)
Sequences.longestDinuc("ATAT") shouldBe OffsetAndLength(0, 4)
}

"Sequences.complement" should "return the complement of sequences" in {
Expand Down

0 comments on commit f6ca3fb

Please sign in to comment.