Skip to content

Commit

Permalink
Update exercises (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
meatball133 authored Jul 17, 2024
1 parent 09cbf99 commit 973457f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions exercises/practice/protein-translation/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,16 @@ 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

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

[9d73899f-e68e-4291-b1e2-7bf87c00f024]
description = "Incomplete RNA sequence can't translate"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,8 @@ describe "ProteinTranslation" do
ProteinTranslation.proteins("UGGUGUUAUUAAUGGUUU").should eq(["Tryptophan", "Cysteine", "Tyrosine"] of String)
end

pending "Non-existing codon can't translate" do
expect_raises(ArgumentError) do
ProteinTranslation.proteins("AAA")
end
pending "Sequence of two non-STOP codons does not translate to a STOP codon" do
ProteinTranslation.proteins("AUGAUG").should eq(["Methionine", "Methionine"] of String)
end

pending "Unknown amino acids, not part of a codon, can't translate" do
Expand Down

0 comments on commit 973457f

Please sign in to comment.