summaryrefslogtreecommitdiff
path: root/tests/test_xpath_parse.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-09-20 19:07:11 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-09-20 19:07:11 +0000
commit7f3e74b5433e01f6ea6a9eca6f4fd560a54dd119 (patch)
tree609e94609bdfc1b1a988d4acdaeec28cd80c8e37 /tests/test_xpath_parse.cpp
parent612fa49d1d01c83e90f0b933c1b7aeee79161b68 (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/test_xpath_parse.cpp')
-rw-r--r--tests/test_xpath_parse.cpp9
1 files changed, 9 insertions, 0 deletions
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