Add test for ending substitutions being invalid

This commit is contained in:
Thomas A. Christensen II 2022-12-06 10:02:39 -06:00
parent 3b61ccefb5
commit f9e76d60d6

View file

@ -121,4 +121,7 @@ end
# Test that ending insertions are still valid # Test that ending insertions are still valid
@test length(Variant(PairwiseAlignment(AlignedSequence(mutseq, Alignment("7=3I", 1, 1)), refseq)).edits) == 1 @test length(Variant(PairwiseAlignment(AlignedSequence(mutseq, Alignment("7=3I", 1, 1)), refseq)).edits) == 1
# Test that out-of-bounds bases are still caught
@test_throws BoundsError Variant(PairwiseAlignment(AlignedSequence(mutseq, Alignment("7=3X", 1, 1)), refseq))
end end