From 66f1311d2259865fd52e21017adccae0106421c1 Mon Sep 17 00:00:00 2001 From: Thomas Fan Date: Sun, 19 Aug 2018 14:37:56 -0400 Subject: [PATCH] protein-translation: updates tests to v1.1.1 --- exercises/protein-translation/protein_translation_test.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/exercises/protein-translation/protein_translation_test.py b/exercises/protein-translation/protein_translation_test.py index 9111eb34c0d..58e7bfea6d8 100644 --- a/exercises/protein-translation/protein_translation_test.py +++ b/exercises/protein-translation/protein_translation_test.py @@ -3,7 +3,7 @@ from protein_translation import proteins -# Tests adapted from problem-specifications/canonical-data.json @ v1.1.0 +# Tests adapted from problem-specifications/canonical-data.json @ v1.1.1 class ProteinTranslationTest(unittest.TestCase): @@ -59,6 +59,12 @@ def test_stops_translation_if_stop_codon_at_end_of_three_codon_sequence( expected = ['Methionine', 'Phenylalanine'] self.assertEqual(proteins(strand), expected) + def test_stops_translation_if_stop_codon_in_middle_of_three_codon_sequence( + self): + strand = 'UGGUAGUGG' + expected = ['Tryptophan'] + self.assertEqual(proteins(strand), expected) + def test_stops_translation_if_stop_codon_in_middle_of_six_codon_sequence( self): strand = 'UGGUGUUAUUAAUGGUUU'