Sha256: 842c281ffb1847d58b75afd1a03f8da5fc471fc7a642b34edf2c7db0377c55d5

Contents?: true

Size: 825 Bytes

Versions: 343

Compression:

Stored size: 825 Bytes

Contents

(ql:quickload "lisp-unit")
#-xlisp-test (load "dna")

(defpackage :rna-transcription-test
  (:use #:common-lisp #:lisp-unit))

(in-package #:rna-transcription-test)

(define-test transcribes-cytidine-to-guanosine
  (assert-equal "G" (dna:to-rna "C")))

(define-test transcribes-guanosine-to-cytidine
  (assert-equal "C" (dna:to-rna "G")))

(define-test transcribes-adenosine-to-uracile
  (assert-equal "U" (dna:to-rna "A")))

(define-test it-transcribes-thymidine-to-adenosine
  (assert-equal "A" (dna:to-rna "T")))

(define-test it-transcribes-all-nucleotides
  (assert-equal "UGCACCAGAAUU" (dna:to-rna "ACGTGGTCTTAA")))

(define-test it-validates-dna-strands
  (assert-error 'error (dna:to-rna "XCGFGGTDTTAA")))

#-xlisp-test
(let ((*print-errors* t)
      (*print-failures* t))
  (run-tests :all :rna-transcription-test))

Version data entries

343 entries across 343 versions & 1 rubygems

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