diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-09-20 19:07:11 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-09-20 19:07:11 +0000 |
commit | 7f3e74b5433e01f6ea6a9eca6f4fd560a54dd119 (patch) | |
tree | 609e94609bdfc1b1a988d4acdaeec28cd80c8e37 /tests | |
parent | 612fa49d1d01c83e90f0b933c1b7aeee79161b68 (diff) |
tests: Improved tests for parsing result default construction
git-svn-id: http://pugixml.googlecode.com/svn/trunk@739 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_parse.cpp | 2 | ||||
-rw-r--r-- | tests/test_xpath_parse.cpp | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_parse.cpp b/tests/test_parse.cpp index 3812df5..d8064b2 100644 --- a/tests/test_parse.cpp +++ b/tests/test_parse.cpp @@ -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); } diff --git a/tests/test_xpath_parse.cpp b/tests/test_xpath_parse.cpp index 4f6f69d..476036e 100644 --- a/tests/test_xpath_parse.cpp +++ b/tests/test_xpath_parse.cpp @@ -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 |