From b8474c8f8b2ec35f888c5bc5b183e4416604a934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20B=20Nagy?= <20251272+BNAndras@users.noreply.github.com> Date: Tue, 6 Jan 2026 22:11:14 -0800 Subject: [PATCH 1/2] Remove test being reimplemented by existing test --- exercises/practice/protein-translation/.meta/tests.toml | 4 ++++ .../protein-translation/protein-translation.test.ts | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/exercises/practice/protein-translation/.meta/tests.toml b/exercises/practice/protein-translation/.meta/tests.toml index 5fb189070..b465aed23 100644 --- a/exercises/practice/protein-translation/.meta/tests.toml +++ b/exercises/practice/protein-translation/.meta/tests.toml @@ -87,11 +87,15 @@ 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" [9eac93f3-627a-4c90-8653-6d0a0595bc6f] description = "Unknown amino acids, not part of a codon, can't translate" +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/protein-translation.test.ts b/exercises/practice/protein-translation/protein-translation.test.ts index 6bb71e9cc..88e9f3f4d 100644 --- a/exercises/practice/protein-translation/protein-translation.test.ts +++ b/exercises/practice/protein-translation/protein-translation.test.ts @@ -127,12 +127,6 @@ describe('Translate input RNA sequences into proteins', () => { expect(translate('UGGUGUUAUUAAUGGUUU')).toEqual(expected) }) - xit("Non-existing codon can't translate", () => { - expect(() => { - translate('AAA') - }).toThrow('Invalid codon') - }) - xit("Unknown amino acids, not part of a codon, can't translate", () => { expect(() => { translate('XYZ') From 28fe03e922e034615663597c3096738fb1c477b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20B=20Nagy?= <20251272+BNAndras@users.noreply.github.com> Date: Tue, 6 Jan 2026 22:13:13 -0800 Subject: [PATCH 2/2] Add new test --- .../practice/protein-translation/protein-translation.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exercises/practice/protein-translation/protein-translation.test.ts b/exercises/practice/protein-translation/protein-translation.test.ts index 88e9f3f4d..a165ff6e7 100644 --- a/exercises/practice/protein-translation/protein-translation.test.ts +++ b/exercises/practice/protein-translation/protein-translation.test.ts @@ -127,6 +127,11 @@ describe('Translate input RNA sequences into proteins', () => { expect(translate('UGGUGUUAUUAAUGGUUU')).toEqual(expected) }) + xit('Sequence of two non-STOP codons does not translate to a STOP codon', () => { + const expected = ['Methionine', 'Methionine'] + expect(translate('AUGAUG')).toEqual(expected) + }) + xit("Unknown amino acids, not part of a codon, can't translate", () => { expect(() => { translate('XYZ')