Update to rxml 0.12.0

This commit is contained in:
Jonas Schäfer 2024-08-09 14:48:40 +02:00
commit f77c21f0fc
9 changed files with 51 additions and 43 deletions

View file

@ -431,16 +431,12 @@ fn fail_comments() {
#[test]
fn xml_error() {
match "<a xmlns='ns1'></b>".parse::<Element>() {
Err(crate::error::Error::XmlError(rxml::Error::Xml(
rxml::error::XmlError::ElementMismatch,
))) => (),
Err(crate::error::Error::XmlError(rxml::Error::ElementMismatch)) => (),
err => panic!("No or wrong error: {:?}", err),
}
match "<a xmlns='ns1'></".parse::<Element>() {
Err(crate::error::Error::XmlError(rxml::Error::Xml(
rxml::error::XmlError::InvalidEof(_),
))) => (),
Err(crate::error::Error::XmlError(rxml::Error::InvalidEof(_))) => (),
err => panic!("No or wrong error: {:?}", err),
}
}