From f9e76d60d6d23530b449062e4e5ac7998f25a978 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 6 Dec 2022 10:02:39 -0600 Subject: [PATCH] Add test for ending substitutions being invalid --- test/runtests.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index e236872..8e28d14 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -121,4 +121,7 @@ end # Test that ending insertions are still valid @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