Skip to content

Commit

Permalink
Remove not working and commented tests
Browse files Browse the repository at this point in the history
sample_3 and sample_4 tests was commented because they are ported from xml-rs crate
and uses some reader settings which quick-xml does not have. No sense to keep them.

sample_5 was ignored because parsing of UTF-16 coded documents not yet implemented.
When such support will be added it will have its own test, no need to keep this one.
  • Loading branch information
Mingun committed Jun 21, 2024
1 parent e9cab59 commit 3321944
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 213 deletions.
11 changes: 1 addition & 10 deletions tests/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Document descrptions
# Document descriptions

document.xml
medium length, mostly empty tags, a few short attributes per element, no escaping
Expand All @@ -25,16 +25,7 @@ sample_1_short.txt
sample_1_full.txt
sample_2.xml
sample_2_short.txt
sample_3.xml
sample_2_full.txt
sample_3_short.txt
sample_3_full.txt
sample_4.xml
sample_4_short.txt
sample_4_full.txt
sample_5_short.txt
sample_5_utf16bom.xml
sample_5_full.txt
sample_ns_short.txt
sample_ns.xml
short, lots of namespaces, no escapes
Expand Down
13 changes: 0 additions & 13 deletions tests/documents/sample_3.xml

This file was deleted.

33 changes: 0 additions & 33 deletions tests/documents/sample_3_full.txt

This file was deleted.

14 changes: 0 additions & 14 deletions tests/documents/sample_3_short.txt

This file was deleted.

15 changes: 0 additions & 15 deletions tests/documents/sample_4.xml

This file was deleted.

24 changes: 0 additions & 24 deletions tests/documents/sample_4_full.txt

This file was deleted.

16 changes: 0 additions & 16 deletions tests/documents/sample_4_short.txt

This file was deleted.

23 changes: 0 additions & 23 deletions tests/documents/sample_5_full.txt

This file was deleted.

15 changes: 0 additions & 15 deletions tests/documents/sample_5_short.txt

This file was deleted.

Binary file removed tests/documents/sample_5_utf16bom.xml
Binary file not shown.
50 changes: 0 additions & 50 deletions tests/xmlrs_reader_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,56 +67,6 @@ fn escaped_characters_html() {
)
}

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

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

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

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

#[test]
// FIXME: Trips on the first byte-order-mark byte
// Expected: StartDocument(1.0, utf-16)
// Found: InvalidUtf8([255, 254]; invalid utf-8 sequence of 1 bytes from index 0)
#[ignore]
fn sample_5_short() {
test_bytes(
include_bytes!("documents/sample_5_utf16bom.xml"),
include_bytes!("documents/sample_5_short.txt"),
true,
);
}

#[test]
fn sample_ns_short() {
test(
Expand Down

0 comments on commit 3321944

Please sign in to comment.