From a6080f039578e796aedf008813c5de36b8a1ca28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20B=20Nagy?= <20251272+BNAndras@users.noreply.github.com> Date: Mon, 5 Jan 2026 17:43:27 -0800 Subject: [PATCH] Sync `protein-translation` tests --- exercises/practice/protein-translation/.meta/tests.toml | 4 ++++ .../practice/protein-translation/ProteinTranslationTests.fs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/exercises/practice/protein-translation/.meta/tests.toml b/exercises/practice/protein-translation/.meta/tests.toml index 56d24dc2b..71f6cb604 100644 --- a/exercises/practice/protein-translation/.meta/tests.toml +++ b/exercises/practice/protein-translation/.meta/tests.toml @@ -87,6 +87,9 @@ description = "Translation stops if STOP codon in middle of three-codon sequence [2c2a2a60-401f-4a80-b977-e0715b23b93d] description = "Translation stops if STOP codon in middle of six-codon sequence" +[f6f92714-769f-4187-9524-e353e8a41a80] +description = "Sequence of two non-STOP codons does not translate to a STOP codon" + [1e75ea2a-f907-4994-ae5c-118632a1cb0f] description = "Non-existing codon can't translate" include = false @@ -94,6 +97,7 @@ include = false [9eac93f3-627a-4c90-8653-6d0a0595bc6f] description = "Unknown amino acids, not part of a codon, can't translate" include = false +reimplements = "1e75ea2a-f907-4994-ae5c-118632a1cb0f" [9d73899f-e68e-4291-b1e2-7bf87c00f024] description = "Incomplete RNA sequence can't translate" diff --git a/exercises/practice/protein-translation/ProteinTranslationTests.fs b/exercises/practice/protein-translation/ProteinTranslationTests.fs index 9eecc15d9..0a8c0ede1 100644 --- a/exercises/practice/protein-translation/ProteinTranslationTests.fs +++ b/exercises/practice/protein-translation/ProteinTranslationTests.fs @@ -109,3 +109,7 @@ let ``Translation stops if STOP codon in middle of three-codon sequence`` () = let ``Translation stops if STOP codon in middle of six-codon sequence`` () = proteins "UGGUGUUAUUAAUGGUUU" |> should equal ["Tryptophan"; "Cysteine"; "Tyrosine"] +[] +let ``Sequence of two non-STOP codons does not translate to a STOP codon`` () = + proteins "AUGAUG" |> should equal ["Methionine"; "Methionine"] +