diff options
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)
|