tests: Add more move tests
Add a test that checks that static buffer pointer was moved correctly by checking if offset_debug still works.
This commit is contained in:
parent
402b967fa9
commit
26ead385a7
@ -1726,4 +1726,13 @@ TEST(document_move_large)
|
|||||||
|
|
||||||
CHECK(!other.first_child());
|
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
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user