Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[No Important Files Changed]: tests.toml change & Test File Regeneration for a Practice Exercise #3847

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions exercises/practice/protein-translation/.approaches/config.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
]
}
18 changes: 18 additions & 0 deletions exercises/practice/protein-translation/.approaches/introduction.md
Original file line number Diff line number Diff line change
@@ -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#
Empty file.
1 change: 1 addition & 0 deletions exercises/practice/protein-translation/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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"]
Expand Down
Loading