Sha256: 96f645c444e231daea64d97f79822463a7e15a10d7753bf3afb845ce3c630d7e

Contents?: true

Size: 789 Bytes

Versions: 396

Compression:

Stored size: 789 Bytes

Contents

;;; rna-transcription-test.el --- Tests for RNA Transcription (exercism)

;;; Commentary:


;;; Code:

(require 'cl)

(load-file "rna-transcription.el")

(ert-deftest transcribes-cytosine-to-guanine ()
  (should (string= "G" (to-rna "C"))))

(ert-deftest transcribes-guanine-to-cytosine ()
  (should (string= "C" (to-rna "G"))))

(ert-deftest transcribes-adenine-to-uracil ()
  (should (string= "U" (to-rna "A"))))

(ert-deftest transcribes-thymine-to-adenine ()
  (should (string= "A" (to-rna "T"))))

(ert-deftest it-transcribes-all-nucleotides ()
  (should (string= "UGCACCAGAAUU"
                   (to-rna "ACGTGGTCTTAA"))))

(ert-deftest it-validates-dna-strands ()
  (should-error (to-rna "XCGFGGTDTTAA")))

(provide 'rna-transcription-test)
;;; rna-transcription-test.el ends here

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.179 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.178 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.177 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.176 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.175 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.174 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.173 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.172 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.171 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.170 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.169 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.167 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.166 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.165 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.164 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.163 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.162 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.161 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.2.1.160 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el