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

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