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.78 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.77 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.76 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.75 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.74 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.73 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.72 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.71 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.70 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.69 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.68 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.67 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.66 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.65 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.64 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.63 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.62 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.61 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.60 tracks/d/exercises/rna-transcription/source/rna_transcription.d
trackler-2.2.1.59 tracks/d/exercises/rna-transcription/source/rna_transcription.d