mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-12-22 16:28:17 +00:00
Add tests for Edit sorting
This commit is contained in:
parent
860ce56b34
commit
6119368af3
1 changed files with 9 additions and 0 deletions
|
@ -36,6 +36,15 @@ seq1 = ungap!(dna"--ATGCGTGTTAGCAAC--TTATCGCG")
|
|||
seq2 = ungap!(dna"TGATGCGTGT-AGCAACACTTATAGCG")
|
||||
var = Haplotype(align(seq1, seq2))
|
||||
|
||||
@testset "EditSorting" begin
|
||||
S = typeof(seq1)
|
||||
T = eltype(seq1)
|
||||
@test SequenceVariation.Edit{S,T}(Deletion(1), 1) <
|
||||
SequenceVariation.Edit{S,T}(Deletion(1), 2)
|
||||
@test SequenceVariation.Edit{S,T}(Deletion(1), 1) <
|
||||
SequenceVariation.Edit{S,T}(Deletion(2), 1)
|
||||
end
|
||||
|
||||
@testset "HaplotypeRoundtrip" begin
|
||||
for v in variations(var)
|
||||
@test v in var
|
||||
|
|
Loading…
Reference in a new issue