mirror of
https://github.com/zeux/pugixml.git
synced 2025-01-14 18:07:59 +08:00
tests: Add a test for empty xpath_query ctor
This commit is contained in:
parent
bfc0f346b4
commit
3e9cf53ea7
@ -409,6 +409,15 @@ TEST_XML(xpath_api_deprecated_select_single_node, "<node><head/><foo id='1'/><fo
|
||||
CHECK(n2.node().attribute(STR("id")).as_int() == 1);
|
||||
}
|
||||
|
||||
TEST(xpath_api_empty)
|
||||
{
|
||||
xml_node c;
|
||||
|
||||
xpath_query q;
|
||||
CHECK(!q);
|
||||
CHECK(!q.evaluate_boolean(c));
|
||||
}
|
||||
|
||||
#if __cplusplus >= 201103
|
||||
TEST_XML(xpath_api_nodeset_move_ctor, "<node><foo/><foo/><bar/></node>")
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user