use crate::export::escape::escape_xml;
#[test]
fn test_escape_xml() {
assert_eq!(escape_xml("all good"), "all good");
assert_eq!(escape_xml("3 < 4"), "3 < 4");
assert_eq!(escape_xml("3 > 4"), "3 > 4");
assert_eq!(escape_xml("3 & 4"), "3 & 4");
assert_eq!(escape_xml("3 && 4"), "3 && 4");
assert_eq!(escape_xml("3 \"literal\" 4"), "3 "literal" 4");
assert_eq!(
escape_xml("I don't 'know'"),
"I don't 'know'"
);
assert_eq!(
escape_xml("This is <>&\"' say"),
"This is <>&"' say"
);
assert_eq!(
escape_xml("One line\nanother line\n\r"),
"One line
another line

"
);
}