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.0.0.5 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.0.0.4 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.0.0.3 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.0.0.2 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.0.0.1 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-2.0.0.0 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-1.0.4.1 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-1.0.4.0 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-1.0.3.0 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-1.0.2.1 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-1.0.2.0 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-1.0.1.2 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-1.0.1.1 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-1.0.1.0 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-1.0.0.1 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el
trackler-1.0.0 tracks/elisp/exercises/rna-transcription/rna-transcription-test.el