Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Commit

Permalink
add more tests of translate on ambiguous codons
Browse files Browse the repository at this point in the history
  • Loading branch information
bicycle1885 committed Mar 20, 2016
1 parent f9ee222 commit 9530e0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/seq/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1732,6 +1732,10 @@ end
@test all(Bool[check_translate(random_translatable_rna(len)) for _ in 1:reps])
end

# ambiguous codons
@test translate(rna"YUGMGG") == aa"LR"
@test translate(rna"GAYGARGAM") == aa"DEX"

@test_throws Exception translate(dna"ACGTACGTA") # can't translate DNA
@test_throws Exception translate(rna"ACGUACGU") # can't translate non-multiples of three
# can't translate N
Expand Down

0 comments on commit 9530e0c

Please sign in to comment.