From 2ff4181dd8a4f5fc173d2b694194cac9fa690d21 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 10 Jan 2023 11:41:08 -0600 Subject: [PATCH] Fix deletion equality function Fixes: da2cbbd5282b ("Add equals functionality to Deletion") Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- src/edits/Deletion.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/edits/Deletion.jl b/src/edits/Deletion.jl index 09af797..75bce76 100644 --- a/src/edits/Deletion.jl +++ b/src/edits/Deletion.jl @@ -15,7 +15,7 @@ end Deletion(x::Integer) = Deletion(convert(UInt, x)) Base.length(x::Deletion) = Int(x.len) -Base.:(==)(x::Substitution, y::Substitution) = length(x) == length(y) +Base.:(==)(x::Deletion, y::Deletion) = length(x) == length(y) Base.hash(x::Deletion, h::UInt) = hash(Deletion, hash(x.len, h)) function _refbases(d::Deletion, reference::S, pos::UInt) where {S<:BioSequence}