tests: More coverage
git-svn-id: http://pugixml.googlecode.com/svn/trunk@158 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
3d986d2b0d
commit
dce82d3fb7
1 changed files with 4 additions and 4 deletions
|
@ -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>g;&#ab;&#quot</node>", parse_minimal | parse_escapes));
|
||||
CHECK_STRING(doc.child_value("node"), "g;&#ab;&#quot");
|
||||
CHECK(doc.load("<node>g;&#ab;"</node>", parse_minimal | parse_escapes));
|
||||
CHECK_STRING(doc.child_value("node"), "g;&#ab;"");
|
||||
}
|
||||
|
||||
TEST(parse_attribute_quot)
|
||||
|
|
Loading…
Add table
Reference in a new issue