mirror of
https://github.com/zeux/pugixml.git
synced 2025-01-14 01:47:55 +08:00
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
|
||||
}
|
||||
|
||||
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;
|
||||
CHECK(doc1.load(STR("<node/>")));
|
||||
doc1.append_child().set_name(STR("node"));
|
||||
|
||||
xml_document doc2;
|
||||
CHECK(doc2.load(STR("<node/>")));
|
||||
doc2.append_child().set_name(STR("node"));
|
||||
|
||||
xpath_variable_set set;
|
||||
set.set(STR("var1"), doc1.select_nodes(STR("*")));
|
||||
|
Loading…
x
Reference in New Issue
Block a user