Skip to content

Commit 7463d2a

Browse files
committed
Remove namespaced reader tests from xmlrs_reader_tests.rs
Both of removed tests testing the same thing: reading document with namespaces. NsReader already tested in tests/reader-namespaces.rs more formally
1 parent 3321944 commit 7463d2a

6 files changed

+0
-158
lines changed

tests/README.md

-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ sample_1.xml
2323
short, mix of attributes and text, lots of escapes
2424
sample_1_short.txt
2525
sample_1_full.txt
26-
sample_2.xml
27-
sample_2_short.txt
28-
sample_2_full.txt
29-
sample_ns_short.txt
3026
sample_ns.xml
3127
short, lots of namespaces, no escapes
3228
sample_rss.xml

tests/documents/sample_2.xml

-15
This file was deleted.

tests/documents/sample_2_full.txt

-56
This file was deleted.

tests/documents/sample_2_short.txt

-30
This file was deleted.

tests/documents/sample_ns_short.txt

-26
This file was deleted.

tests/xmlrs_reader_tests.rs

-27
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,6 @@ fn sample_1_full() {
2424
);
2525
}
2626

27-
#[test]
28-
fn sample_2_short() {
29-
test(
30-
include_str!("documents/sample_2.xml"),
31-
include_str!("documents/sample_2_short.txt"),
32-
true,
33-
);
34-
}
35-
36-
#[test]
37-
fn sample_2_full() {
38-
test(
39-
include_str!("documents/sample_2.xml"),
40-
include_str!("documents/sample_2_full.txt"),
41-
false,
42-
);
43-
}
44-
4527
#[cfg(feature = "escape-html")]
4628
#[test]
4729
fn html5() {
@@ -67,15 +49,6 @@ fn escaped_characters_html() {
6749
)
6850
}
6951

70-
#[test]
71-
fn sample_ns_short() {
72-
test(
73-
include_str!("documents/sample_ns.xml"),
74-
include_str!("documents/sample_ns_short.txt"),
75-
true,
76-
);
77-
}
78-
7952
#[track_caller]
8053
fn test(input: &str, output: &str, trim: bool) {
8154
test_bytes(input.as_bytes(), output.as_bytes(), trim);

0 commit comments

Comments
 (0)