From 0cac815b6398d60171e992a4333ab16ad542aebc Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sun, 8 Nov 2009 15:17:46 +0000 Subject: tests: More coverage tests git-svn-id: http://pugixml.googlecode.com/svn/trunk@225 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_xpath_functions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test_xpath_functions.cpp') diff --git a/tests/test_xpath_functions.cpp b/tests/test_xpath_functions.cpp index ed2c47a..9cf8164 100644 --- a/tests/test_xpath_functions.cpp +++ b/tests/test_xpath_functions.cpp @@ -599,7 +599,7 @@ TEST_XML_FLAGS(xpath_nodeset_local_name, "text< CHECK_XPATH_FAIL("local-name(c1, c2)"); } -TEST_XML_FLAGS(xpath_nodeset_namespace_uri, "text", parse_default | parse_pi) +TEST_XML_FLAGS(xpath_nodeset_namespace_uri, "text", parse_default | parse_pi) { xml_node c; xml_node n = doc.child("node"); @@ -621,6 +621,7 @@ TEST_XML_FLAGS(xpath_nodeset_namespace_uri, "te CHECK_XPATH_STRING(n, "namespace-uri(c3)", "http://def"); CHECK_XPATH_STRING(n, "namespace-uri(c3/@attr)", ""); // the namespace name for an unprefixed attribute name always has no value (Namespaces in XML 1.0) CHECK_XPATH_STRING(n, "namespace-uri(c3/child::node())", "http://def"); + CHECK_XPATH_STRING(n, "namespace-uri(c6/@bar:attr)", ""); // namespace-uri with 2 arguments CHECK_XPATH_FAIL("namespace-uri(c1, c2)"); -- cgit v1.2.3