mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-28 14:48:43 +08:00
tests: Added more escape error tests
git-svn-id: http://pugixml.googlecode.com/svn/trunk@169 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
0ceaa38aeb
commit
cbdce99d5c
@ -275,6 +275,13 @@ TEST(parse_escapes_error)
|
|||||||
CHECK_STRING(doc.child_value("node"), "g;&#ab;"");
|
CHECK_STRING(doc.child_value("node"), "g;&#ab;"");
|
||||||
|
|
||||||
CHECK(!doc.load("<node id='"));
|
CHECK(!doc.load("<node id='"));
|
||||||
|
CHECK(!doc.load("<node id='&g"));
|
||||||
|
CHECK(!doc.load("<node id='>"));
|
||||||
|
CHECK(!doc.load("<node id='&l"));
|
||||||
|
CHECK(!doc.load("<node id='<"));
|
||||||
|
CHECK(!doc.load("<node id='&a"));
|
||||||
|
CHECK(!doc.load("<node id='&"));
|
||||||
|
CHECK(!doc.load("<node id='&apos"));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(parse_attribute_spaces)
|
TEST(parse_attribute_spaces)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user