Sha256: 5c0d302b4107d9e1132c7c647b3ce8f9a91b1df74707a9ec4f696156f8573763

Contents?: true

Size: 677 Bytes

Versions: 71

Compression:

Stored size: 677 Bytes

Contents

#if swift(>=3.0)
    import XCTest
#endif

class RnaTranscriptionTest: XCTestCase {

    func testRnaComplementOfCytosineIsGuanine() {
        XCTAssertEqual("G", Nucleotide("C").complementOfDNA)
    }

    func testRnaComplementOfGuanineIsCytosine() {
        XCTAssertEqual("C", Nucleotide("G").complementOfDNA)
    }

    func testRnaComplementOfThymineIsAdenine() {
        XCTAssertEqual("A", Nucleotide("T").complementOfDNA)
    }

    func testRnaComplementOfAdenineIsUracil() {
        XCTAssertEqual("U", Nucleotide("A").complementOfDNA)
    }

    func testRnaComplement() {
        XCTAssertEqual("UGCACCAGAAUU", Nucleotide("ACGTGGTCTTAA").complementOfDNA)
    }

}

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
trackler-2.0.6.15 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.6.14 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.6.13 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.6.12 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.6.11 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.6.10 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.6.9 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.6.8 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.6.7 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.6.6 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.6.5 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.6.4 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.6.3 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.6.2 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.6.1 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.6.0 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.5.18 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.5.17 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.5.16 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift
trackler-2.0.5.15 tracks/swift/exercises/rna-transcription/RnaTranscriptionTest.swift