summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-09-20 18:14:58 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-09-20 18:14:58 +0000
commitd35f6751cf5165911b88a6f889262681506ad709 (patch)
tree6f56ef2b0d2d4a743003efb7ae6162c303beaaa7 /tests
parent6dc6f8bdc7df6793cc9b09f33e3fdc8bbb76a192 (diff)
tests: Added default ctor test
git-svn-id: http://pugixml.googlecode.com/svn/trunk@737 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests')
-rw-r--r--tests/test_parse.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_parse.cpp b/tests/test_parse.cpp
index 2fcaf6e..3812df5 100644
--- a/tests/test_parse.cpp
+++ b/tests/test_parse.cpp
@@ -755,3 +755,11 @@ TEST(parse_error_offset)
CHECK_OFFSET("<no></na>", parse_default, status_end_element_mismatch, 8);
CHECK_OFFSET("<no></nod>", parse_default, status_end_element_mismatch, 9);
}
+
+TEST(parse_result_default)
+{
+ xml_parse_result result;
+
+ CHECK(!result);
+ CHECK(result.status == status_internal_error);
+}