tests: Add an explicit test for empty xpath_node_set copying (regression test for issue 143)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@832 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
0d4020e96e
commit
1835571886
@ -130,6 +130,14 @@ TEST_XML(xpath_api_nodeset_copy, "<node><foo/><foo/></node>")
|
|||||||
CHECK_STRING(copy4[0].node().name(), STR("foo"));
|
CHECK_STRING(copy4[0].node().name(), STR("foo"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST(xpath_api_nodeset_copy_empty)
|
||||||
|
{
|
||||||
|
xpath_node_set set;
|
||||||
|
xpath_node_set set2 = set;
|
||||||
|
xpath_node_set set3;
|
||||||
|
set3 = set;
|
||||||
|
}
|
||||||
|
|
||||||
TEST_XML(xpath_api_evaluate, "<node attr='3'/>")
|
TEST_XML(xpath_api_evaluate, "<node attr='3'/>")
|
||||||
{
|
{
|
||||||
xpath_query q(STR("node/@attr"));
|
xpath_query q(STR("node/@attr"));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user