tests: Improved document order comparison coverage
git-svn-id: http://pugixml.googlecode.com/svn/trunk@696 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
b1939bd6f8
commit
06e9af0ecb
@ -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("*")));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user