0
0
mirror of https://github.com/zeux/pugixml.git synced 2024-12-27 13:33:17 +08:00

tests: Improved tests for parsing result default construction

git-svn-id: http://pugixml.googlecode.com/svn/trunk@739 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
arseny.kapoulkine 2010-09-20 19:07:11 +00:00
parent 612fa49d1d
commit 7f3e74b543
2 changed files with 11 additions and 0 deletions

View File

@ -762,4 +762,6 @@ TEST(parse_result_default)
CHECK(!result);
CHECK(result.status == status_internal_error);
CHECK(result.offset == 0);
CHECK(result.encoding == encoding_auto);
}

View File

@ -304,4 +304,13 @@ TEST(xpath_parse_qname_error)
CHECK_XPATH_FAIL(STR(":"));
}
TEST(xpath_parse_result_default)
{
xpath_parse_result result;
CHECK(!result);
CHECK(result.error != 0);
CHECK(result.offset == 0);
}
#endif