Skip to content

Commit

Permalink
[add] testComplementaryStrand
Browse files Browse the repository at this point in the history
  • Loading branch information
rrbox committed Sep 4, 2022
1 parent 3c67645 commit fe1ec13
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Tests/NucleotideTests/APITests/AnalyzeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,19 @@ final class AnalyzeTests: XCTestCase {

}

// 逆向き配列を算出するテスト.
// 相補的な配列を算出するテスト.
func testComplementaryStrand() throws {
let dna: BaseSequence<DNA> = "ATGCATGCN"
XCTAssertEqual(
dna.complementaryStrand()
.description, "DNA: TACGTACGN")
XCTAssertEqual(
dna.complementaryStrand(typeOf: RNA.self)
.description, "RNA: UACGUACGN")

}

// 逆向き配列を算出するテスト.
func testfReverseStrand() throws {
let dna: BaseSequence<DNA> = "ATGCATGCN"
XCTAssertEqual(
Expand Down

0 comments on commit fe1ec13

Please sign in to comment.