summaryrefslogtreecommitdiff
path: root/tests/test_parse.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-20 18:04:18 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-20 18:04:18 +0000
commitdce82d3fb7e27f85cd3b426d1a630fcb4657ba3a (patch)
treecec79b485d40db89b2d8aefd506a3ffb02ee9a32 /tests/test_parse.cpp
parent3d986d2b0dcae25c5248b40f2dde27ed078905ee (diff)
tests: More coverage
git-svn-id: http://pugixml.googlecode.com/svn/trunk@158 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_parse.cpp')
-rw-r--r--tests/test_parse.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_parse.cpp b/tests/test_parse.cpp
index 749e686..3d81953 100644
--- a/tests/test_parse.cpp
+++ b/tests/test_parse.cpp
@@ -90,7 +90,7 @@ TEST(parse_comments_error)
{
xml_document doc;
- unsigned int flag_sets[] = {parse_minimal, parse_minimal | parse_comments};
+ unsigned int flag_sets[] = {parse_minimal, parse_minimal | parse_comments, parse_minimal | parse_comments | parse_eol};
for (unsigned int i = 0; i < sizeof(flag_sets) / sizeof(flag_sets[0]); ++i)
{
@@ -153,7 +153,7 @@ TEST(parse_cdata_error)
{
xml_document doc;
- unsigned int flag_sets[] = {parse_minimal, parse_minimal | parse_cdata};
+ unsigned int flag_sets[] = {parse_minimal, parse_minimal | parse_cdata, parse_minimal | parse_cdata | parse_eol};
for (unsigned int i = 0; i < sizeof(flag_sets) / sizeof(flag_sets[0]); ++i)
{
@@ -265,8 +265,8 @@ TEST(parse_escapes_unicode)
TEST(parse_escapes_error)
{
xml_document doc;
- CHECK(doc.load("<node>&#x03g;&#ab;&#quot</node>", parse_minimal | parse_escapes));
- CHECK_STRING(doc.child_value("node"), "&#x03g;&#ab;&#quot");
+ CHECK(doc.load("<node>&#x03g;&#ab;&quot</node>", parse_minimal | parse_escapes));
+ CHECK_STRING(doc.child_value("node"), "&#x03g;&#ab;&quot");
}
TEST(parse_attribute_quot)