0
0
mirror of https://github.com/zeux/pugixml.git synced 2024-12-27 13:33:17 +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:
arseny.kapoulkine 2009-10-21 08:52:27 +00:00
parent 0ceaa38aeb
commit cbdce99d5c

View File

@ -275,6 +275,13 @@ TEST(parse_escapes_error)
CHECK_STRING(doc.child_value("node"), "&#x03g;&#ab;&quot");
CHECK(!doc.load("<node id='&#x12"));
CHECK(!doc.load("<node id='&g"));
CHECK(!doc.load("<node id='&gt"));
CHECK(!doc.load("<node id='&l"));
CHECK(!doc.load("<node id='&lt"));
CHECK(!doc.load("<node id='&a"));
CHECK(!doc.load("<node id='&amp"));
CHECK(!doc.load("<node id='&apos"));
}
TEST(parse_attribute_spaces)