diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-10-02 03:06:59 +0000 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-10-02 03:06:59 +0000 |
commit | 3fcc530b341709000b7acf4e8b85ad11cac0927d (patch) | |
tree | 6e7a82456a3f496fb79c9597fd12908b6c291242 /tests/test_dom_modify.cpp | |
parent | 00e1219bec0bd56536fcd8cba7930b426c9601db (diff) |
tests: Add missing tests to increase code coverage
git-svn-id: https://pugixml.googlecode.com/svn/trunk@1038 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_dom_modify.cpp')
-rw-r--r-- | tests/test_dom_modify.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_dom_modify.cpp b/tests/test_dom_modify.cpp index a66f56a..cf202e0 100644 --- a/tests/test_dom_modify.cpp +++ b/tests/test_dom_modify.cpp @@ -1180,8 +1180,9 @@ TEST_XML(dom_node_insert_move_before, "<node>foo<child>bar</child></node>") TEST_XML(dom_node_move_recursive, "<root><node>foo<child/></node></root>") { xml_node root = doc.child(STR("root")); - xml_node node = doc.child(STR("node")); + xml_node node = root.child(STR("node")); xml_node foo = node.first_child(); + xml_node child = node.last_child(); CHECK(node.prepend_move(node) == xml_node()); CHECK(node.prepend_move(root) == xml_node()); @@ -1195,6 +1196,8 @@ TEST_XML(dom_node_move_recursive, "<root><node>foo<child/></node></root>") CHECK(node.insert_move_after(node, foo) == xml_node()); CHECK(node.insert_move_after(root, foo) == xml_node()); + CHECK(child.append_move(node) == xml_node()); + CHECK_NODE(doc, STR("<root><node>foo<child /></node></root>")); } |