mirror of
https://github.com/zeux/pugixml.git
synced 2025-01-14 18:07:59 +08:00
tests: Added document reset-self test
git-svn-id: http://pugixml.googlecode.com/svn/trunk@787 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
4920e4fec9
commit
0a96b552d6
@ -925,3 +925,13 @@ TEST_XML(document_reset_copy, "<node><child/></node>")
|
||||
|
||||
CHECK(doc.first_child().offset_debug() == -1);
|
||||
}
|
||||
|
||||
TEST_XML(document_reset_copy_self, "<node><child/></node>")
|
||||
{
|
||||
CHECK_NODE(doc, STR("<node><child /></node>"));
|
||||
|
||||
doc.reset(doc);
|
||||
|
||||
CHECK(!doc.first_child());
|
||||
CHECK_NODE(doc, STR(""));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user