Skip to content

Commit

Permalink
Remove namespaced reader tests from xmlrs_reader_tests.rs
Browse files Browse the repository at this point in the history
Both of removed tests testing the same thing: reading document with namespaces.
NsReader already tested in tests/reader-namespaces.rs more formally
  • Loading branch information
Mingun committed Jun 21, 2024
1 parent 3321944 commit 7463d2a
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 158 deletions.
4 changes: 0 additions & 4 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ sample_1.xml
short, mix of attributes and text, lots of escapes
sample_1_short.txt
sample_1_full.txt
sample_2.xml
sample_2_short.txt
sample_2_full.txt
sample_ns_short.txt
sample_ns.xml
short, lots of namespaces, no escapes
sample_rss.xml
Expand Down
15 changes: 0 additions & 15 deletions tests/documents/sample_2.xml

This file was deleted.

56 changes: 0 additions & 56 deletions tests/documents/sample_2_full.txt

This file was deleted.

30 changes: 0 additions & 30 deletions tests/documents/sample_2_short.txt

This file was deleted.

26 changes: 0 additions & 26 deletions tests/documents/sample_ns_short.txt

This file was deleted.

27 changes: 0 additions & 27 deletions tests/xmlrs_reader_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,6 @@ fn sample_1_full() {
);
}

#[test]
fn sample_2_short() {
test(
include_str!("documents/sample_2.xml"),
include_str!("documents/sample_2_short.txt"),
true,
);
}

#[test]
fn sample_2_full() {
test(
include_str!("documents/sample_2.xml"),
include_str!("documents/sample_2_full.txt"),
false,
);
}

#[cfg(feature = "escape-html")]
#[test]
fn html5() {
Expand All @@ -67,15 +49,6 @@ fn escaped_characters_html() {
)
}

#[test]
fn sample_ns_short() {
test(
include_str!("documents/sample_ns.xml"),
include_str!("documents/sample_ns_short.txt"),
true,
);
}

#[track_caller]
fn test(input: &str, output: &str, trim: bool) {
test_bytes(input.as_bytes(), output.as_bytes(), trim);
Expand Down

0 comments on commit 7463d2a

Please sign in to comment.