Sha256: a4cb9399dc7f4ee9ae066858162993d0ea8a4949aa5aff31df247050d698dda6

Contents?: true

Size: 682 Bytes

Versions: 396

Compression:

Stored size: 682 Bytes

Contents

(ns rna-transcription-test
  (:require [clojure.test :refer [deftest is]]
            rna-transcription))

(deftest transcribes-cytosine-to-guanine
  (is (= "G" (rna-transcription/to-rna "C"))))

(deftest transcribes-guanine-to-cytosine
  (is (= "C" (rna-transcription/to-rna "G"))))

(deftest transcribes-adenine-to-uracil
  (is (= "U" (rna-transcription/to-rna "A"))))

(deftest it-transcribes-thymine-to-adenine
  (is (= "A" (rna-transcription/to-rna "T"))))

(deftest it-transcribes-all-nucleotides
  (is (= "UGCACCAGAAUU" (rna-transcription/to-rna "ACGTGGTCTTAA"))))

(deftest it-validates-dna-strands
  (is (thrown? AssertionError (rna-transcription/to-rna "XCGFGGTDTTAA"))))

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.118 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.117 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.116 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.115 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.114 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.113 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.111 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.110 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.109 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.108 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.107 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.106 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.105 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.104 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.103 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.102 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.101 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.100 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj
trackler-2.2.1.99 tracks/clojure/exercises/rna-transcription/test/rna_transcription_test.clj