From 7f3e74b5433e01f6ea6a9eca6f4fd560a54dd119 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Mon, 20 Sep 2010 19:07:11 +0000 Subject: tests: Improved tests for parsing result default construction git-svn-id: http://pugixml.googlecode.com/svn/trunk@739 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_parse.cpp | 2 ++ tests/test_xpath_parse.cpp | 9 +++++++++ 2 files changed, 11 insertions(+) (limited to 'tests') 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 -- cgit v1.2.3