summaryrefslogtreecommitdiff
path: root/tests/test_document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_document.cpp')
-rw-r--r--tests/test_document.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_document.cpp b/tests/test_document.cpp
index fa0dc8d..3ca69cd 100644
--- a/tests/test_document.cpp
+++ b/tests/test_document.cpp
@@ -1726,4 +1726,13 @@ TEST(document_move_large)
CHECK(!other.first_child());
}
+
+TEST_XML(document_move_buffer, "<node1/><node2/>")
+{
+ CHECK(doc.child(STR("node2")).offset_debug() == 9);
+
+ xml_document other = std::move(doc);
+
+ CHECK(other.child(STR("node2")).offset_debug() == 9);
+}
#endif