File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
exercises/practice/protein-translation Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,9 @@ description = "Translation stops if STOP codon in middle of three-codon sequence
87
87
[2c2a2a60-401f-4a80-b977-e0715b23b93d ]
88
88
description = " Translation stops if STOP codon in middle of six-codon sequence"
89
89
90
+ [f6f92714-769f-4187-9524-e353e8a41a80 ]
91
+ description = " Sequence of two non-STOP codons does not translate to a STOP codon"
92
+
90
93
[1e75ea2a-f907-4994-ae5c-118632a1cb0f ]
91
94
description = " Non-existing codon can't translate"
92
95
include = false
Original file line number Diff line number Diff line change @@ -256,6 +256,18 @@ public function testTranslationStopsIfStopCodonInMiddleOfSixCodonSequence(): voi
256
256
);
257
257
}
258
258
259
+ /**
260
+ * uuid f6f92714-769f-4187-9524-e353e8a41a80
261
+ * @testdox Sequence of two non-STOP codons does not translate to a STOP codon
262
+ */
263
+ public function testSequenceOfTwoNonStopCodonsDoesNotTranslateToAStopCodon (): void
264
+ {
265
+ $ this ->assertEquals (
266
+ ['Methionine ' , 'Methionine ' ],
267
+ $ this ->translator ->getProteins ('AUGAUG ' )
268
+ );
269
+ }
270
+
259
271
/**
260
272
* uuid 9eac93f3-627a-4c90-8653-6d0a0595bc6f
261
273
* @testdox Unknown amino acids, not part of a codon, can't translate
You can’t perform that action at this time.
0 commit comments