From 1835571886997c22170af8e74ad6201976b913ae Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Sat, 18 Feb 2012 03:35:37 +0000 Subject: 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 --- tests/test_xpath_api.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_xpath_api.cpp b/tests/test_xpath_api.cpp index b735f8c..d831712 100644 --- a/tests/test_xpath_api.cpp +++ b/tests/test_xpath_api.cpp @@ -130,6 +130,14 @@ TEST_XML(xpath_api_nodeset_copy, "") 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, "") { xpath_query q(STR("node/@attr")); -- cgit v1.2.3