Skip to content

Commit 1251ffe

Browse files
committed
Sync protein-translation tests
1 parent 17d602f commit 1251ffe

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,15 @@ description = "Translation stops if STOP codon in middle of three-codon sequence
8787
[2c2a2a60-401f-4a80-b977-e0715b23b93d]
8888
description = "Translation stops if STOP codon in middle of six-codon sequence"
8989

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

9396
[9eac93f3-627a-4c90-8653-6d0a0595bc6f]
9497
description = "Unknown amino acids, not part of a codon, can't translate"
98+
reimplements = "1e75ea2a-f907-4994-ae5c-118632a1cb0f"
9599

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

exercises/practice/protein-translation/protein_translation.vader

+5
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ Execute (Translation stops if STOP codon in middle of six-codon sequence):
129129
let g:expected = ['Tryptophan', 'Cysteine', 'Tyrosine']
130130
AssertEqual g:expected, Proteins(g:strand)
131131

132+
Execute (Sequence of two non-STOP codons does not translate to a STOP codon):
133+
let g:strand = "AUGAUG"
134+
let g:expected = ['Methionine', 'Methionine']
135+
AssertEqual g:expected, Proteins(g:strand)
136+
132137
Execute (Non-existing codon can't translate):
133138
let g:strand = "AAA"
134139
let g:expected = "Invalid codon"

0 commit comments

Comments
 (0)