primeiro commit com exercicios de Exercism realizados até esta data

This commit is contained in:
2026-10-17 22:10:27 +01:00
commit 58fccbe27a
708 changed files with 35038 additions and 0 deletions
@@ -0,0 +1,29 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/rna-transcription/canonical-data.json
# File last updated on 2023-07-19
import unittest
from rna_transcription import (
to_rna,
)
class RnaTranscriptionTest(unittest.TestCase):
def test_empty_rna_sequence(self):
self.assertEqual(to_rna(""), "")
def test_rna_complement_of_cytosine_is_guanine(self):
self.assertEqual(to_rna("C"), "G")
def test_rna_complement_of_guanine_is_cytosine(self):
self.assertEqual(to_rna("G"), "C")
def test_rna_complement_of_thymine_is_adenine(self):
self.assertEqual(to_rna("T"), "A")
def test_rna_complement_of_adenine_is_uracil(self):
self.assertEqual(to_rna("A"), "U")
def test_rna_complement(self):
self.assertEqual(to_rna("ACGTGGTCTTAA"), "UGCACCAGAAUU")