Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/integration/cdata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ test!(cdata_09, "<p><![CDATA[bracket ]after]]></p>",
Token::ElementEnd(ElementEnd::Close("", "p"), 29..33)
);

test!(cdata_err_01, "<p><![CDATA[\0]]></p>",
test!(cdata_err_01, "<p><![CDATA[\u{1}]]></p>",
Token::ElementStart("", "p", 0..2),
Token::ElementEnd(ElementEnd::Open, 2..3),
Token::Error("invalid CDATA at 1:4 cause a non-XML character '\\u{0}' found at 1:13".to_string())
Token::Error("invalid CDATA at 1:4 cause a non-XML character '\\u{1}' found at 1:13".to_string())
);
4 changes: 2 additions & 2 deletions tests/integration/elements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ test!(attribute_err_05, "<c a='<'/>",
Token::Error("invalid attribute at 1:3 cause expected ''' not '<' at 1:7".to_string())
);

test!(attribute_err_06, "<c a='\0'/>",
test!(attribute_err_06, "<c a='\u{1}'/>",
Token::ElementStart("", "c", 0..2),
Token::Error("invalid attribute at 1:3 cause a non-XML character '\\u{0}' found at 1:7".to_string())
Token::Error("invalid attribute at 1:3 cause a non-XML character '\\u{1}' found at 1:7".to_string())
);

test!(attribute_err_07, "<c a='v'b='v'/>",
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/pi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ test!(declaration_err_12, "<?xml version='1.0'?><?xml version='1.0'?>",
Token::Error("unknown token at 1:22".to_string())
);

test!(declaration_err_13, "<?target \u{0000}content>",
Token::Error("invalid processing instruction at 1:1 cause a non-XML character '\\u{0}' found at 1:10".to_string())
test!(declaration_err_13, "<?target \u{1}content>",
Token::Error("invalid processing instruction at 1:1 cause a non-XML character '\\u{1}' found at 1:10".to_string())
);

test!(declaration_err_14, "<?xml version='1.0'encoding='UTF-8'?>",
Expand Down