From dce82d3fb7e27f85cd3b426d1a630fcb4657ba3a Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Tue, 20 Oct 2009 18:04:18 +0000 Subject: tests: More coverage git-svn-id: http://pugixml.googlecode.com/svn/trunk@158 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_parse.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') 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("g;&#ab;&#quot", parse_minimal | parse_escapes)); - CHECK_STRING(doc.child_value("node"), "g;&#ab;&#quot"); + CHECK(doc.load("g;&#ab;"", parse_minimal | parse_escapes)); + CHECK_STRING(doc.child_value("node"), "g;&#ab;""); } TEST(parse_attribute_quot) -- cgit v1.2.3