Skip to content

minidom: Implement PartialEq manually for Node and Element

pep requested to merge minidom-partialeq into master

Move the NamespaceAwareCompare implementation from xmpp-parsers as Node and Element's PartialEq implementation. Thanks @astro1!

It's a lot more useful in tests to use assert_eq! than assert!, so we get both items compared (left and right) instead of a "it failed." message.

This "breaks" comparison for these two structs in the sense that it is not strict object comparison anymore but it ensures that namespaces are all present in the compared objects.

Signed-off-by: Maxime “pep” Buquet pep@bouah.net

Merge request reports