#[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_11_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]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmtns11001() {
test_eduni_namespaces_11_valid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/namespaces/1.1/001.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmtns11002() {
test_eduni_namespaces_11_valid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/namespaces/1.1/002.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmtns11003() {
test_eduni_namespaces_11_valid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/namespaces/1.1/003.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmtns11004() {
test_eduni_namespaces_11_valid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/namespaces/1.1/004.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmtns11006() {
test_eduni_namespaces_11_valid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/namespaces/1.1/006.xml")
.unwrap()
.as_str(),
);
}