diff --git a/tests/test_xpath_api.cpp b/tests/test_xpath_api.cpp index 7abf7d9..8687e35 100644 --- a/tests/test_xpath_api.cpp +++ b/tests/test_xpath_api.cpp @@ -123,7 +123,7 @@ TEST_XML(xpath_api_nodeset_copy, "") xpath_node_set copy3; copy3 = set; - copy3 = copy3; + copy3 = xpath_node_set(copy3); CHECK(copy3.size() == 2); CHECK_STRING(copy3[0].node().name(), STR("foo")); diff --git a/tests/test_xpath_variables.cpp b/tests/test_xpath_variables.cpp index 8a65e3c..3d2147c 100644 --- a/tests/test_xpath_variables.cpp +++ b/tests/test_xpath_variables.cpp @@ -454,7 +454,7 @@ TEST_XML(xpath_variables_copy, "") CHECK_XPATH_STRING_VAR(xml_node(), STR("substring($c, count($d[$a]) + $b)"), &set2, STR("ring")); - set3 = set3; + set3 = xpath_variable_set(set3); CHECK_XPATH_STRING_VAR(xml_node(), STR("substring($c, count($d[$a]) + $b)"), &set2, STR("ring"));