Sha256: a7271509ac77275dfcbcb5beeea59cc4fac3d62d69d38f31593945e96ea41c57

Contents?: true

Size: 435 Bytes

Versions: 388

Compression:

Stored size: 435 Bytes

Contents

import unittest

import rna_transcription

test "transcribes G to C":
  check toRna("G") == "C"

test "transcribes C to G":
  check toRna("C") == "G"

test "transcribes T to A":
  check toRna("T") == "A"

test "transcribes A to U":
  check toRna("A") == "U"

test "transcribe all occurrences":
  check toRna("ACGTGGTCTTAA") == "UGCACCAGAAUU"

test "raise ValueError on invalid nucleotide":
  expect(ValueError):
    discard toRna("Q")

Version data entries

388 entries across 388 versions & 1 rubygems

Version Path
trackler-2.2.1.172 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.171 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.170 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.169 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.167 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.166 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.165 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.164 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.163 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.162 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.161 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.160 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.159 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.158 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.157 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.156 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.155 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.154 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.153 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim
trackler-2.2.1.152 tracks/nim/exercises/rna-transcription/rna_transcription_test.nim