Sha256: f36e6d81905162bdd2cd45a8d3f5310813f5801a2cc140c5e13a2f2c0bde1635

Contents?: true

Size: 489 Bytes

Versions: 20

Compression:

Stored size: 489 Bytes

Contents

module rna_transcription;

import std.exception : assertThrown;

unittest {
const int allTestsEnabled = 0;

    assert(dnaComplement("C") == "G");
static if (allTestsEnabled) {
    assert(dnaComplement("G") == "C");
    assert(dnaComplement("T") == "A");
    assert(dnaComplement("A") == "U");

    assert(dnaComplement("ACGTGGTCTTAA") == "UGCACCAGAAUU");

    assertThrown(dnaComplement("U"));
    assertThrown(dnaComplement("XXX"));
    assertThrown(dnaComplement("ACGTXXXCTTAA"));
}

}

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
trackler-2.1.0.48 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.47 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.46 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.45 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.44 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.43 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.42 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.41 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.40 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.39 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.38 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.37 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.36 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.34 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.33 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.32 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.31 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.30 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.29 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d
trackler-2.1.0.28 tracks/dlang/exercises/rna-transcription/source/rna_transcription.d