Skip to content

Commit fe28366

Browse files
authored
synced tests.toml and regenerated tests for Protein-Translation. (#3731)
1 parent f3fdd2e commit fe28366

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

exercises/practice/protein-translation/.meta/tests.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,17 @@ description = "Translation stops if STOP codon in middle of three-codon sequence
8888
[2c2a2a60-401f-4a80-b977-e0715b23b93d]
8989
description = "Translation stops if STOP codon in middle of six-codon sequence"
9090

91+
[f6f92714-769f-4187-9524-e353e8a41a80]
92+
description = "Sequence of two non-STOP codons does not translate to a STOP codon"
93+
9194
[1e75ea2a-f907-4994-ae5c-118632a1cb0f]
9295
description = "Non-existing codon can't translate"
9396
include = false
9497

9598
[9eac93f3-627a-4c90-8653-6d0a0595bc6f]
9699
description = "Unknown amino acids, not part of a codon, can't translate"
97100
include = false
101+
reimplements = "1e75ea2a-f907-4994-ae5c-118632a1cb0f"
98102

99103
[9d73899f-e68e-4291-b1e2-7bf87c00f024]
100104
description = "Incomplete RNA sequence can't translate"

exercises/practice/protein-translation/protein_translation_test.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# These tests are auto-generated with test data from:
22
# https://github.com/exercism/problem-specifications/tree/main/exercises/protein-translation/canonical-data.json
3-
# File last updated on 2023-07-19
3+
# File last updated on 2024-07-08
44

55
import unittest
66

@@ -134,3 +134,8 @@ def test_translation_stops_if_stop_codon_in_middle_of_six_codon_sequence(self):
134134
value = "UGGUGUUAUUAAUGGUUU"
135135
expected = ["Tryptophan", "Cysteine", "Tyrosine"]
136136
self.assertEqual(proteins(value), expected)
137+
138+
def test_sequence_of_two_non_stop_codons_does_not_translate_to_a_stop_codon(self):
139+
value = "AUGAUG"
140+
expected = ["Methionine", "Methionine"]
141+
self.assertEqual(proteins(value), expected)

0 commit comments

Comments
 (0)