#[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_namespaces_10_valid(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_ok());
}
#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmtns10001() {
test_eduni_namespaces_10_valid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/namespaces/1.0/001.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmtns10002() {
test_eduni_namespaces_10_valid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/namespaces/1.0/002.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmtns10003() {
test_eduni_namespaces_10_valid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/namespaces/1.0/002.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmtns10007() {
test_eduni_namespaces_10_valid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/namespaces/1.0/007.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmtns10008() {
test_eduni_namespaces_10_valid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/namespaces/1.0/008.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn htns10047() {
test_eduni_namespaces_10_valid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/namespaces/1.0/047.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn htns10048() {
test_eduni_namespaces_10_valid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/namespaces/1.0/048.xml")
.unwrap()
.as_str(),
);
}