Skip to content
Snippets Groups Projects
Commit 06e9af0e authored by arseny.kapoulkine's avatar arseny.kapoulkine
Browse files

tests: Improved document order comparison coverage

git-svn-id: http://pugixml.googlecode.com/svn/trunk@696 99668b35-9821-0410-8761-19e4c4f06640
parent b1939bd6
No related branches found
No related tags found
No related merge requests found
...@@ -237,13 +237,16 @@ TEST(xpath_variables_evaluate_node_set_fail) ...@@ -237,13 +237,16 @@ TEST(xpath_variables_evaluate_node_set_fail)
#endif #endif
} }
TEST_XML(xpath_variables_multiple_documents, "<node/>") TEST(xpath_variables_multiple_documents)
{ {
xml_document doc;
doc.append_child().set_name(STR("node"));
xml_document doc1; xml_document doc1;
CHECK(doc1.load(STR("<node/>"))); doc1.append_child().set_name(STR("node"));
xml_document doc2; xml_document doc2;
CHECK(doc2.load(STR("<node/>"))); doc2.append_child().set_name(STR("node"));
xpath_variable_set set; xpath_variable_set set;
set.set(STR("var1"), doc1.select_nodes(STR("*"))); set.set(STR("var1"), doc1.select_nodes(STR("*")));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment