Fix deletion equality function

Fixes: da2cbbd528 ("Add equals functionality to Deletion")

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2023-01-10 11:41:08 -06:00
parent 5bd939a15c
commit 2ff4181dd8
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -15,7 +15,7 @@ end
Deletion(x::Integer) = Deletion(convert(UInt, x)) Deletion(x::Integer) = Deletion(convert(UInt, x))
Base.length(x::Deletion) = Int(x.len) 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)) Base.hash(x::Deletion, h::UInt) = hash(Deletion, hash(x.len, h))
function _refbases(d::Deletion, reference::S, pos::UInt) where {S<:BioSequence} function _refbases(d::Deletion, reference::S, pos::UInt) where {S<:BioSequence}