Sha256: 888fd621306b5ce717fb3a7d0c6a7fb5c20ba8bf2c804bd0990361483983fb71
Contents?: true
Size: 724 Bytes
Versions: 19
Compression:
Stored size: 724 Bytes
Contents
import unittest from rna_transcription import to_rna # Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0 class RnaTranscriptionTest(unittest.TestCase): def test_transcribes_cytosine_to_guanine(self): self.assertEqual(to_rna('C'), 'G') def test_transcribes_guanine_to_cytosine(self): self.assertEqual(to_rna('G'), 'C') def test_transcribes_thymine_to_adenine(self): self.assertEqual(to_rna('T'), 'A') def test_transcribes_adenine_to_uracil(self): self.assertEqual(to_rna('A'), 'U') def test_transcribes_all_occurrences(self): self.assertEqual(to_rna('ACGTGGTCTTAA'), 'UGCACCAGAAUU') if __name__ == '__main__': unittest.main()
Version data entries
19 entries across 19 versions & 1 rubygems