#[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"))]
use xrust::validators::Schema;
#[cfg(all(test, feature = "test-conformance-xml"))]
fn test_eduni_misc_invalid(xmldoc: &str) {
let testxml = RNode::new_document();
let parseresult = xml::parse(
testxml,
xmldoc,
Some(|_: &_| Err(ParseError::MissingNameSpace)),
);
assert!(parseresult.is_ok());
let doc = parseresult.unwrap();
let validation = doc.validate(Schema::DTD);
assert!(validation.is_err());
}
#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn hstbh005() {
test_eduni_misc_invalid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/misc/005.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn hstbh006() {
test_eduni_misc_invalid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/misc/006.xml")
.unwrap()
.as_str(),
);
}