Put the tests in element.rs into a module block.
This commit is contained in:
parent
956dff3ad4
commit
fac64400f1
1 changed files with 78 additions and 74 deletions
|
@ -926,6 +926,9 @@ impl ElementBuilder {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_element_new() {
|
fn test_element_new() {
|
||||||
use std::iter::FromIterator;
|
use std::iter::FromIterator;
|
||||||
|
@ -1003,3 +1006,4 @@ fn does_not_unescape_cdata() {
|
||||||
let elem = Element::from_reader(&mut reader).unwrap();
|
let elem = Element::from_reader(&mut reader).unwrap();
|
||||||
assert_eq!(elem.text(), "'>blah<blah>");
|
assert_eq!(elem.text(), "'>blah<blah>");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue