Introduce comparing with namespace support.
This commit is contained in:
parent
04ec34bed8
commit
1b1661fd82
16 changed files with 156 additions and 20 deletions
|
|
@ -122,6 +122,7 @@ impl From<Set> for Element {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use compare_elements::NamespaceAwareCompare;
|
||||
|
||||
#[test]
|
||||
fn test_simple() {
|
||||
|
|
@ -197,6 +198,6 @@ mod tests {
|
|||
max: None,
|
||||
};
|
||||
let elem2 = set2.into();
|
||||
assert_eq!(elem1, elem2);
|
||||
assert!(elem1.compare_to(&elem2));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue