t/SeqTools/CodonTable.t: test for removed codon tables (#386)
commitd21ff931c30982550dbb80691071a1d4a08ab796
authorDavid Miguel Susano Pinto <carandraug+dev@gmail.com>
Fri, 26 Apr 2024 13:24:58 +0000 (26 14:24 +0100)
committerDavid Miguel Susano Pinto <carandraug+dev@gmail.com>
Fri, 26 Apr 2024 13:24:58 +0000 (26 14:24 +0100)
tree6ea56808851bb06cef107aa8f1294a0aff20119a
parent9f6beda28a3b8846d3745949c53cb3221cd75ff1
t/SeqTools/CodonTable.t: test for removed codon tables (#386)

Codon tables are sometimes removed, e.g., codon table id=7.
Previously, instead of being handled as invalid tables, these would
return the "''" (because they were parsed from a `qw()`.  Since
a73febe9 the tables are parsed straight from the gc.prt, the tables
array gets a real empty string, adn are handled as invalid.

In PR #386 a test was added that the "''" was returned.  This is no
longer needed.  This commit tests that when a table is empty (id=7)
it's properly identified as invalid to avoid a regression.
t/SeqTools/CodonTable.t