summaryrefslogtreecommitdiff
path: root/tests/test_parse.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-21 08:52:27 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-21 08:52:27 +0000
commitcbdce99d5c68fbfc7e878d108f1d16f8a08cfcb7 (patch)
treee43b4494ec67b6704bd580ead5dbd1e21fc59d2f /tests/test_parse.cpp
parent0ceaa38aeb258b6cc055fa002f718a921d52c6ab (diff)
tests: Added more escape error tests
git-svn-id: http://pugixml.googlecode.com/svn/trunk@169 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_parse.cpp')
-rw-r--r--tests/test_parse.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_parse.cpp b/tests/test_parse.cpp
index 81b217a..fae3bb8 100644
--- a/tests/test_parse.cpp
+++ b/tests/test_parse.cpp
@@ -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)