#[cfg(all(test, feature = "test-conformance-xml"))]
use std::fs;
#[cfg(all(test, feature = "test-conformance-xml"))]
use xrust::item::Node;
#[cfg(all(test, feature = "test-conformance-xml"))]
use xrust::parser::{ParseError, xml};
#[cfg(all(test, feature = "test-conformance-xml"))]
use xrust::trees::smite::RNode;
#[cfg(all(test, feature = "test-conformance-xml"))]
fn test_eduni_namespaces_10_error(xmldoc: &str) {
let testxml = RNode::new_document();
let parseresult = xml::parse(
testxml,
xmldoc,
Some(|_: &_| Err(ParseError::MissingNameSpace)),
);
assert!(parseresult.is_err());
}
#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmtns10004() {
test_eduni_namespaces_10_error(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/namespaces/1.0/004.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmtns10005() {
test_eduni_namespaces_10_error(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/namespaces/1.0/005.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmtns10006() {
test_eduni_namespaces_10_error(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/namespaces/1.0/006.xml")
.unwrap()
.as_str(),
);
}