Add equality function for Variant

This commit is contained in:
Thomas A. Christensen II 2022-12-06 10:59:31 -06:00
parent f9e76d60d6
commit 91c3acc85e

View file

@ -308,6 +308,7 @@ end
edits(v::Variant) = v.edits edits(v::Variant) = v.edits
reference(v::Variant) = v.ref reference(v::Variant) = v.ref
Base.:(==)(x::Variant, y::Variant) = x.ref == y.ref && x.edits == y.edits
function lendiff(edit::Edit) function lendiff(edit::Edit)
x = edit.x x = edit.x