cargo fmt
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
f2ca095fb6
commit
2e7b980a34
1 changed files with 8 additions and 24 deletions
|
@ -715,9 +715,7 @@ mod tests {
|
||||||
let elem3: Element = "<presence scansion:strict='false' xmlns='foo'><foo/>\n</presence>"
|
let elem3: Element = "<presence scansion:strict='false' xmlns='foo'><foo/>\n</presence>"
|
||||||
.parse()
|
.parse()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let elem4: Element = "<presence xmlns='foo'><foo/>\t</presence>"
|
let elem4: Element = "<presence xmlns='foo'><foo/>\t</presence>".parse().unwrap();
|
||||||
.parse()
|
|
||||||
.unwrap();
|
|
||||||
let scan2 = ScanElement::new(elem3);
|
let scan2 = ScanElement::new(elem3);
|
||||||
|
|
||||||
assert_eq!(scan2, elem4);
|
assert_eq!(scan2, elem4);
|
||||||
|
@ -725,9 +723,7 @@ mod tests {
|
||||||
let elem5: Element = "<presence scansion:strict='false' xmlns='foo'> <foo/>\n</presence>"
|
let elem5: Element = "<presence scansion:strict='false' xmlns='foo'> <foo/>\n</presence>"
|
||||||
.parse()
|
.parse()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let elem6: Element = "<presence xmlns='foo'><foo/>\t</presence>"
|
let elem6: Element = "<presence xmlns='foo'><foo/>\t</presence>".parse().unwrap();
|
||||||
.parse()
|
|
||||||
.unwrap();
|
|
||||||
let scan3 = ScanElement::new(elem5);
|
let scan3 = ScanElement::new(elem5);
|
||||||
|
|
||||||
assert_eq!(scan3, elem6);
|
assert_eq!(scan3, elem6);
|
||||||
|
@ -748,9 +744,7 @@ mod tests {
|
||||||
let elem3: Element = "<presence scansion:strict='true' xmlns='foo'><foo/>\n</presence>"
|
let elem3: Element = "<presence scansion:strict='true' xmlns='foo'><foo/>\n</presence>"
|
||||||
.parse()
|
.parse()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let elem4: Element = "<presence xmlns='foo'><foo/>\t</presence>"
|
let elem4: Element = "<presence xmlns='foo'><foo/>\t</presence>".parse().unwrap();
|
||||||
.parse()
|
|
||||||
.unwrap();
|
|
||||||
let scan2 = ScanElement::new(elem3);
|
let scan2 = ScanElement::new(elem3);
|
||||||
|
|
||||||
assert_eq!(scan2, elem4);
|
assert_eq!(scan2, elem4);
|
||||||
|
@ -758,9 +752,7 @@ mod tests {
|
||||||
let elem5: Element = "<presence scansion:strict='true' xmlns='foo'> <foo/>\n</presence>"
|
let elem5: Element = "<presence scansion:strict='true' xmlns='foo'> <foo/>\n</presence>"
|
||||||
.parse()
|
.parse()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let elem6: Element = "<presence xmlns='foo'><foo/>\t</presence>"
|
let elem6: Element = "<presence xmlns='foo'><foo/>\t</presence>".parse().unwrap();
|
||||||
.parse()
|
|
||||||
.unwrap();
|
|
||||||
let scan3 = ScanElement::new(elem5);
|
let scan3 = ScanElement::new(elem5);
|
||||||
|
|
||||||
assert_eq!(scan3, elem6);
|
assert_eq!(scan3, elem6);
|
||||||
|
@ -771,9 +763,7 @@ mod tests {
|
||||||
let elem1: Element = "<presence scansion:strict='false' xmlns='foo'>abc</presence>"
|
let elem1: Element = "<presence scansion:strict='false' xmlns='foo'>abc</presence>"
|
||||||
.parse()
|
.parse()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let elem2: Element = "<presence xmlns='foo'> abc </presence>"
|
let elem2: Element = "<presence xmlns='foo'> abc </presence>".parse().unwrap();
|
||||||
.parse()
|
|
||||||
.unwrap();
|
|
||||||
let scan1 = ScanElement::new(elem1);
|
let scan1 = ScanElement::new(elem1);
|
||||||
|
|
||||||
assert_ne!(scan1, elem2);
|
assert_ne!(scan1, elem2);
|
||||||
|
@ -781,9 +771,7 @@ mod tests {
|
||||||
let elem3: Element = "<presence scansion:strict='false' xmlns='foo'> </presence>"
|
let elem3: Element = "<presence scansion:strict='false' xmlns='foo'> </presence>"
|
||||||
.parse()
|
.parse()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let elem4: Element = "<presence xmlns='foo'></presence>"
|
let elem4: Element = "<presence xmlns='foo'></presence>".parse().unwrap();
|
||||||
.parse()
|
|
||||||
.unwrap();
|
|
||||||
let scan2 = ScanElement::new(elem3);
|
let scan2 = ScanElement::new(elem3);
|
||||||
|
|
||||||
assert_ne!(scan2, elem4);
|
assert_ne!(scan2, elem4);
|
||||||
|
@ -794,9 +782,7 @@ mod tests {
|
||||||
let elem1: Element = "<presence scansion:strict='true' xmlns='foo'>abc</presence>"
|
let elem1: Element = "<presence scansion:strict='true' xmlns='foo'>abc</presence>"
|
||||||
.parse()
|
.parse()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let elem2: Element = "<presence xmlns='foo'> abc </presence>"
|
let elem2: Element = "<presence xmlns='foo'> abc </presence>".parse().unwrap();
|
||||||
.parse()
|
|
||||||
.unwrap();
|
|
||||||
let scan1 = ScanElement::new(elem1);
|
let scan1 = ScanElement::new(elem1);
|
||||||
|
|
||||||
assert_ne!(scan1, elem2);
|
assert_ne!(scan1, elem2);
|
||||||
|
@ -804,9 +790,7 @@ mod tests {
|
||||||
let elem3: Element = "<presence scansion:strict='true' xmlns='foo'> </presence>"
|
let elem3: Element = "<presence scansion:strict='true' xmlns='foo'> </presence>"
|
||||||
.parse()
|
.parse()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let elem4: Element = "<presence xmlns='foo'></presence>"
|
let elem4: Element = "<presence xmlns='foo'></presence>".parse().unwrap();
|
||||||
.parse()
|
|
||||||
.unwrap();
|
|
||||||
let scan2 = ScanElement::new(elem3);
|
let scan2 = ScanElement::new(elem3);
|
||||||
|
|
||||||
assert_ne!(scan2, elem4);
|
assert_ne!(scan2, elem4);
|
||||||
|
|
Loading…
Reference in a new issue