Skip to content

Commit

Permalink
Move documents to test encodings to a sub-folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingun authored and dralley committed Aug 27, 2022
1 parent 1b0259d commit d7dae47
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unit tests assume that all xml files have unix style line endings
/tests/documents/* text eol=lf
/tests/documents/encoding/* text eol=lf

/tests/documents/utf16be.xml binary
/tests/documents/utf16le.xml binary
/tests/documents/encoding/utf16be-bom.xml binary
/tests/documents/encoding/utf16le-bom.xml binary
/tests/documents/sample_5_utf16bom.xml binary
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/encodings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ mod decode {
use pretty_assertions::assert_eq;
use quick_xml::encoding::*;

static UTF16BE_TEXT_WITH_BOM: &[u8] = include_bytes!("./documents/utf16be.xml");
static UTF16LE_TEXT_WITH_BOM: &[u8] = include_bytes!("./documents/utf16le.xml");
static UTF8_TEXT_WITH_BOM: &[u8] = include_bytes!("./documents/utf8.xml");
static UTF16BE_TEXT_WITH_BOM: &[u8] = include_bytes!("documents/encoding/utf16be-bom.xml");
static UTF16LE_TEXT_WITH_BOM: &[u8] = include_bytes!("documents/encoding/utf16le-bom.xml");
static UTF8_TEXT_WITH_BOM: &[u8] = include_bytes!("documents/encoding/utf8-bom.xml");

static UTF8_TEXT: &str = r#"<?xml version="1.0"?>
<project name="project-name">
Expand Down

0 comments on commit d7dae47

Please sign in to comment.