Sha256: 41d22c2633e3cc0b7376ecf607d4a0e1d5ccd2809891eb880242310f4bd04466

Contents?: true

Size: 1.39 KB

Versions: 86

Compression:

Stored size: 1.39 KB

Contents

import "package:test/test.dart";
import "package:rna_transcription/rna_transcription.dart";

void main() {
  final rnaTranscription = new RnaTranscription();

  group("RnaTranscription", () {
    group("#toRna()", () {
      test("transcribes cytosine to guanine", () {
        final result = rnaTranscription.toRna("C");

        expect(result, equals("G"));
      }, skip: false);

      test("transcribes guanine to cytosine", () {
        final result = rnaTranscription.toRna("G");

        expect(result, equals("C"));
      }, skip: true);

      test("transcribes adenine to uracil", () {
        final result = rnaTranscription.toRna("A");

        expect(result, equals("U"));
      }, skip: true);

      test("transcribes thymine to adenine", () {
        final result = rnaTranscription.toRna("T");

        expect(result, equals("A"));
      }, skip: true);

      test("transcribes all dna nucleotides to their rna complements", () {
        final result = rnaTranscription.toRna("ACGTGGTCTTAA");

        expect(result, equals("UGCACCAGAAUU"));
      }, skip: true);

      test("correctly handles completely invalid input", () {
        expect(() => rnaTranscription.toRna("XXX"), throwsArgumentError);
      }, skip: true);

      test("correctly handles partially invalid input", () {
        expect(() => rnaTranscription.toRna("ACGTXXXCTTAA"), throwsArgumentError);
      }, skip: true);
    });
  });
}

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
trackler-2.2.1.68 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.67 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.66 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.65 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.64 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.63 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.62 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.61 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.60 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.59 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.58 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.57 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.56 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.55 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.54 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.53 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.52 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.51 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.50 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart
trackler-2.2.1.49 tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart