Introduce comparing with namespace support.

This commit is contained in:
Astro 2017-08-19 00:04:18 +01:00
commit 1b1661fd82
16 changed files with 156 additions and 20 deletions

View file

@ -272,6 +272,7 @@ impl From<PubSubEvent> for Element {
mod tests {
use super::*;
use std::str::FromStr;
use compare_elements::NamespaceAwareCompare;
#[test]
fn test_simple() {
@ -417,6 +418,6 @@ mod tests {
}
let elem2: Element = event.into();
assert_eq!(elem, elem2);
assert!(elem.compare_to(&elem2));
}
}