Skip to content

Commit

Permalink
Sync protein-translation tests (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
keiravillekode authored Jul 1, 2024
1 parent 0bd76f9 commit a71b94a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions exercises/practice/protein-translation/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ 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"
include = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@
(proteins "UGGUGUUAUUAAUGGUUU"))))


(ert-deftest sequence-of-two-non-stop-codons-does-not-translate-to-a-stop-codon ()
(should (equal '("Methionine" "Methionine")
(proteins "AUGAUG"))))


(ert-deftest unknown-amino-acids-not-part-of-a-codon-cant-translate ()
(should-error (proteins "XYZ")))

Expand Down

0 comments on commit a71b94a

Please sign in to comment.