diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-10-21 08:52:27 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-10-21 08:52:27 +0000 |
commit | cbdce99d5c68fbfc7e878d108f1d16f8a08cfcb7 (patch) | |
tree | e43b4494ec67b6704bd580ead5dbd1e21fc59d2f /tests/test_parse.cpp | |
parent | 0ceaa38aeb258b6cc055fa002f718a921d52c6ab (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.cpp | 7 |
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"), "g;&#ab;"");
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)
|