diff options
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 | 
