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:
parent
612fa49d1d
commit
7f3e74b543
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user