diff --git a/tests/test_document.cpp b/tests/test_document.cpp index 8796560..971bb48 100644 --- a/tests/test_document.cpp +++ b/tests/test_document.cpp @@ -925,3 +925,13 @@ TEST_XML(document_reset_copy, "") CHECK(doc.first_child().offset_debug() == -1); } + +TEST_XML(document_reset_copy_self, "") +{ + CHECK_NODE(doc, STR("")); + + doc.reset(doc); + + CHECK(!doc.first_child()); + CHECK_NODE(doc, STR("")); +}