mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-27 22:01:03 +08:00
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"));
|
||||
}
|
||||
|
||||
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'/>")
|
||||
{
|
||||
xpath_query q(STR("node/@attr"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user