1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
/*
Richard Tobin's XML 1.0 3rd edition errata test suite 1 June 2006
*/
#[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_errata3e_invalid(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 rmte3e06a() {
/*
Test ID:rmt-e3e-06a
Test URI:E06a.xml
Spec Sections:E06
Description:Default values for IDREF attributes must match Name.
*/
test_eduni_errata3e_invalid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/errata-3e/E06a.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmte3e06b() {
/*
Test ID:rmt-e3e-06b
Test URI:E06b.xml
Spec Sections:E06
Description:Default values for ENTITY attributes must match Name.
*/
test_eduni_errata3e_invalid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/errata-3e/E06b.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmte3e06c() {
/*
Test ID:rmt-e3e-06c
Test URI:E06c.xml
Spec Sections:E06
Description:Default values for IDREFS attributes must match Names.
*/
test_eduni_errata3e_invalid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/errata-3e/E06c.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmte3e06d() {
/*
Test ID:rmt-e3e-06d
Test URI:E06d.xml
Spec Sections:E06
Description:Default values for ENTITIES attributes must match Names.
*/
test_eduni_errata3e_invalid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/errata-3e/E06d.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmte3e06e() {
/*
Test ID:rmt-e3e-06e
Test URI:E06e.xml
Spec Sections:E06
Description:Default values for NMTOKEN attributes must match Nmtoken.
*/
test_eduni_errata3e_invalid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/errata-3e/E06e.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmte3e06f() {
/*
Test ID:rmt-e3e-06f
Test URI:E06f.xml
Spec Sections:E06
Description:Default values for NMTOKENS attributes must match Nmtokens.
*/
test_eduni_errata3e_invalid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/errata-3e/E06f.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmte3e06g() {
/*
Test ID:rmt-e3e-06g
Test URI:E06g.xml
Spec Sections:E06
Description:Default values for NOTATION attributes must match one of the enumerated values.
*/
test_eduni_errata3e_invalid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/errata-3e/E06g.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmte3e06h() {
/*
Test ID:rmt-e3e-06h
Test URI:E06h.xml
Spec Sections:E06
Description:Default values for enumerated attributes must match one of the enumerated values.
*/
test_eduni_errata3e_invalid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/errata-3e/E06h.xml")
.unwrap()
.as_str(),
);
}
#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn rmte3e13() {
/*
Test ID:rmt-e3e-13
Test URI:E13.xml
Spec Sections:E13
Description:Even internal parameter entity references are enough to make undeclared entities into mere validity errors rather than well-formedness errors.
*/
test_eduni_errata3e_invalid(
fs::read_to_string("tests/conformance/xml/xmlconf/eduni/errata-3e/E13.xml")
.unwrap()
.as_str(),
);
}