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