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 20, 2024
1 parent d997666 commit 1390cef
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 203 deletions.
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 1390cef

Please sign in to comment.