1+ import org .scalatest .{FunSuite , Matchers }
2+
3+ class ProteinTranslationTest extends FunSuite with Matchers {
4+ test(" Identifies methionine codon" ) {
5+ ProteinTranslation .translate(" AUG" ) should be(Seq (" Methionine" ))
6+ }
7+
8+ test(" Identifies phenylalanine codons" ) {
9+ pending
10+ ProteinTranslation .translate(" UUU" ) should be(Seq (" Phenylalanine" ))
11+ ProteinTranslation .translate(" UUC" ) should be(Seq (" Phenylalanine" ))
12+ }
13+
14+ test(" Identifies leucine codons" ) {
15+ pending
16+ ProteinTranslation .translate(" UUA" ) should be(Seq (" Leucine" ))
17+ ProteinTranslation .translate(" UUG" ) should be(Seq (" Leucine" ))
18+ }
19+
20+ test(" Identifies serine codons" ) {
21+ pending
22+ ProteinTranslation .translate(" UCU" ) should be(Seq (" Serine" ))
23+ ProteinTranslation .translate(" UCC" ) should be(Seq (" Serine" ))
24+ ProteinTranslation .translate(" UCA" ) should be(Seq (" Serine" ))
25+ ProteinTranslation .translate(" UCG" ) should be(Seq (" Serine" ))
26+ }
27+
28+ test(" Identifies tyrosine codons" ) {
29+ pending
30+ ProteinTranslation .translate(" UAU" ) should be(Seq (" Tyrosine" ))
31+ ProteinTranslation .translate(" UAC" ) should be(Seq (" Tyrosine" ))
32+ }
33+
34+ test(" Identifies cysteine codons" ) {
35+ pending
36+ ProteinTranslation .translate(" UGU" ) should be(Seq (" Cysteine" ))
37+ ProteinTranslation .translate(" UGC" ) should be(Seq (" Cysteine" ))
38+ }
39+
40+ test(" Identifies tryptophan codons" ) {
41+ pending
42+ ProteinTranslation .translate(" UGG" ) should be(Seq (" Tryptophan" ))
43+ }
44+
45+ test(" Translate RNA strand into correct protein" ) {
46+ pending
47+ ProteinTranslation .translate(" AUGUUUUGG" ) should be(Seq (" Methionine" , " Phenylalanine" , " Tryptophan" ))
48+ }
49+
50+ test(" Stops translation if stop codon is present" ) {
51+ pending
52+ ProteinTranslation .translate(" AUGUUUUAA" ) should be(Seq (" Methionine" , " Phenylalanine" ))
53+ }
54+
55+ test(" Stops translation of longest strand" ) {
56+ pending
57+ ProteinTranslation .translate(" UGGUGUUAUUAAUGGUUU" ) should be(Seq (" Tryptophan" , " Cysteine" , " Tyrosine" ))
58+ }
59+ }
0 commit comments