Skip to content

Commit

Permalink
Sync protein-translation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BNAndras committed Oct 17, 2024
1 parent d18b283 commit 4f9ab60
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ fun sequence-of-two-non-stop-codons():
end
end

fun non-existent-codon():
check "Non-existing codon can't translate":
proteins("AAA") raises "Invalid codon"
end
end

fun unknown-codon():
check "Unknown amino acids, not part of a codon, can't translate":
proteins("XYZ") raises "Invalid codon"
Expand Down Expand Up @@ -224,6 +230,7 @@ data TestRun: test(run, active) end
test(stop-in-middle-of-three-codons, false),
test(stop-in-middle-of-six-codons, false),
test(sequence-of-two-non-stop-codons, false),
test(non-existent-codon, false),
test(unknown-codon, false),
test(incomplete-sequence, false),
test(incomplete-sequence-with-stop, false)
Expand Down

0 comments on commit 4f9ab60

Please sign in to comment.