Sha256: 891977f61266adb1025d759174f317411a90feb5be69b52835711daf8fd1b543

Contents?: true

Size: 489 Bytes

Versions: 193

Compression:

Stored size: 489 Bytes

Contents

module rna_transcription;

unittest {
import std.exception : assertThrown;

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

193 entries across 193 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.97 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.96 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.95 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.94 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.93 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.92 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.91 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.90 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.89 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.88 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.87 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.86 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.85 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.84 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.83 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.82 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.81 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.80 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.79 tracks/d/exercises/rna-transcription/source/rna_transcription.d