From dd00231840f0288a30c6da2c63925a581e559204 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Mon, 5 Dec 2022 15:34:39 -0600 Subject: [PATCH] Add test for soft clips --- test/runtests.jl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index c1eeb37..673201a 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -106,3 +106,13 @@ end @test refbases(Variation(dna"ATCGA", "1C")) == dna"A" @test altbases(Variation(dna"ATCGA", "1C")) == dna"CA" end + +@testset "SoftclipVariant" begin + refseq = dna"GATTACA" + mutseq = dna"GATTACAAAA" + + refvar = Variant(refseq, SequenceVariation.Edit{typeof(refseq), eltype(refseq)}[]) + + # Test for ending soft clip + @test Variant(PairwiseAlignment(AlignedSequence(mutseq, Alignment("7=3S", 1, 1)), refseq)) == refvar +end