tests: Fix PUGIXML_NO_XPATH build
This commit is contained in:
parent
62728d9c2e
commit
5f4afe3bd2
1 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,7 @@ TEST(document_deprecated_load)
|
|||
CHECK_NODE(doc, STR("<node/>"));
|
||||
}
|
||||
|
||||
#ifndef PUGIXML_NO_XPATH
|
||||
TEST_XML(xpath_api_deprecated_select_single_node, "<node><head/><foo id='1'/><foo/><tail/></node>")
|
||||
{
|
||||
xpath_node n1 = doc.select_single_node(STR("node/foo"));
|
||||
|
@ -21,3 +22,4 @@ TEST_XML(xpath_api_deprecated_select_single_node, "<node><head/><foo id='1'/><fo
|
|||
CHECK(n1.node().attribute(STR("id")).as_int() == 1);
|
||||
CHECK(n2.node().attribute(STR("id")).as_int() == 1);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue