summaryrefslogtreecommitdiff
path: root/tests/test_xpath_variables.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-29 15:51:35 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-29 15:51:35 +0000
commit06e9af0ecb746bef47d215996103aa52084fadda (patch)
tree7ed445b46da9424487c628f30318adece8660f6f /tests/test_xpath_variables.cpp
parentb1939bd6f8a523c1121bdcc5bf5edaa43218617c (diff)
tests: Improved document order comparison coverage
git-svn-id: http://pugixml.googlecode.com/svn/trunk@696 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_xpath_variables.cpp')
-rw-r--r--tests/test_xpath_variables.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_xpath_variables.cpp b/tests/test_xpath_variables.cpp
index 001b1b5..785a504 100644
--- a/tests/test_xpath_variables.cpp
+++ b/tests/test_xpath_variables.cpp
@@ -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("*")));