From 9f1911b5edffa8fa0e27fb8b1307857cc4737196 Mon Sep 17 00:00:00 2001 From: BethanyG Date: Sat, 11 Jan 2025 13:52:04 -0800 Subject: [PATCH] Test PR to confirm the no important files change fix worked. DO NO MERGE! --- .../.approaches/config.json | 36 +++++++++++++++++++ .../.approaches/introduction.md | 18 ++++++++++ .../protein-translation/.articles/config.json | 0 .../protein-translation/.meta/tests.toml | 1 + .../protein_translation_test.py | 7 +--- 5 files changed, 56 insertions(+), 6 deletions(-) create mode 100644 exercises/practice/protein-translation/.approaches/config.json create mode 100644 exercises/practice/protein-translation/.approaches/introduction.md create mode 100644 exercises/practice/protein-translation/.articles/config.json diff --git a/exercises/practice/protein-translation/.approaches/config.json b/exercises/practice/protein-translation/.approaches/config.json new file mode 100644 index 0000000000..195eb1e2e2 --- /dev/null +++ b/exercises/practice/protein-translation/.approaches/config.json @@ -0,0 +1,36 @@ +{ + "introduction": { + "authors": [ + "BethanyG" + ] + }, + "approaches": [ + { + "uuid": "", + "slug": "", + "title": "", + "blurb": "", + "authors": [ + "BethanyG" + ] + }, + { + "uuid": "", + "slug": "", + "title": "", + "blurb": "", + "authors": [ + "BethanyG" + ] + }, + { + "uuid": "", + "slug": "", + "title": "", + "blurb": "", + "authors": [ + "BethanyG" + ] + } + ] +} diff --git a/exercises/practice/protein-translation/.approaches/introduction.md b/exercises/practice/protein-translation/.approaches/introduction.md new file mode 100644 index 0000000000..312fa87252 --- /dev/null +++ b/exercises/practice/protein-translation/.approaches/introduction.md @@ -0,0 +1,18 @@ +# Introduction + +The goal of the `Protein Translation` exercise is to transform an input string representing mRNA [codons][codons] to a `list` of corresponding [amino acid][amino acids] names. + +There are many different ways to solve this problem in Python, but all solutions use some form of mapping that connects three-letter codon codes to their amino acid names. +The most common mapping is to use a dictionary, but [`Enums`][enums] + + + + + + + + + +[codons]: https://en.wikipedia.org/wiki/DNA_and_RNA_codon_tables +[amino acids]: https://en.wikipedia.org/wiki/Amino_acid#:~:text=Amino%20acids%20are%20the%20precursors,to%20two%20neighboring%20amino%20acids. +[enums]: https://docs.python.org/3/howto/enum.html# diff --git a/exercises/practice/protein-translation/.articles/config.json b/exercises/practice/protein-translation/.articles/config.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/exercises/practice/protein-translation/.meta/tests.toml b/exercises/practice/protein-translation/.meta/tests.toml index f9f1381590..45b52cb536 100644 --- a/exercises/practice/protein-translation/.meta/tests.toml +++ b/exercises/practice/protein-translation/.meta/tests.toml @@ -45,6 +45,7 @@ description = "Tyrosine RNA sequence 1" [47bcfba2-9d72-46ad-bbce-22f7666b7eb1] description = "Tyrosine RNA sequence 2" +include = false [3a691829-fe72-43a7-8c8e-1bd083163f72] description = "Cysteine RNA sequence 1" diff --git a/exercises/practice/protein-translation/protein_translation_test.py b/exercises/practice/protein-translation/protein_translation_test.py index 03a20fa501..5ea31ac53e 100644 --- a/exercises/practice/protein-translation/protein_translation_test.py +++ b/exercises/practice/protein-translation/protein_translation_test.py @@ -1,6 +1,6 @@ # These tests are auto-generated with test data from: # https://github.com/exercism/problem-specifications/tree/main/exercises/protein-translation/canonical-data.json -# File last updated on 2024-07-08 +# File last updated on 2025-01-11 import unittest @@ -60,11 +60,6 @@ def test_tyrosine_rna_sequence_1(self): expected = ["Tyrosine"] self.assertEqual(proteins(value), expected) - def test_tyrosine_rna_sequence_2(self): - value = "UAC" - expected = ["Tyrosine"] - self.assertEqual(proteins(value), expected) - def test_cysteine_rna_sequence_1(self): value = "UGU" expected = ["Cysteine"]