Sha256: c87408e15544954052c47ad636c7dbafd8d16dbca2cea8b35f3c8d3ad9c1676d
Contents?: true
Size: 895 Bytes
Versions: 396
Compression:
Stored size: 895 Bytes
Contents
;; Load SRFI-64 lightweight testing specification (use-modules (srfi srfi-64)) ;; Suppress log file output. To write logs, comment out the following line: (module-define! (resolve-module '(srfi srfi-64)) 'test-log-to-file #f) (add-to-load-path (dirname (current-filename))) (use-modules (dna)) (test-begin "rna-transcription") (test-equal "transcribes-cytosine-to-guanine" "G" (to-rna "C")) (test-equal "transcribes-guanine-to-cytosine" "C" (to-rna "G")) (test-equal "transcribes-adenine-to-uracil" "U" (to-rna "A")) (test-equal "transcribes-thymine-to-adenine" "A" (to-rna "T")) (test-equal "transcribes-all-nucleotides" "UGCACCAGAAUU" (to-rna "ACGTGGTCTTAA")) (test-error "it-validates-dna-strands" #t (to-rna "XCGFGGTDTTAA")) (test-end "rna-transcription")
Version data entries
396 entries across 396 versions & 1 rubygems