From deb9e8bc74e67ec14a39dd977afbfe345d5586f6 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Wed, 4 Aug 2010 14:15:46 +0000 Subject: tests: Added more XPath tests git-svn-id: http://pugixml.googlecode.com/svn/trunk@628 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_xpath_functions.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/test_xpath_functions.cpp') diff --git a/tests/test_xpath_functions.cpp b/tests/test_xpath_functions.cpp index 3eb69c6..1d533b7 100644 --- a/tests/test_xpath_functions.cpp +++ b/tests/test_xpath_functions.cpp @@ -248,7 +248,7 @@ TEST_XML(xpath_boolean_lang, "123789100") +TEST_XML(xpath_string_string, "123789100") { xml_node c; xml_node n = doc.child(STR("node")); @@ -629,7 +629,7 @@ TEST_XML_FLAGS(xpath_nodeset_local_name, "text< CHECK_XPATH_FAIL(STR("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(STR("node")); @@ -652,6 +652,7 @@ TEST_XML_FLAGS(xpath_nodeset_namespace_uri, "te CHECK_XPATH_STRING(n, STR("namespace-uri(c3/@attr)"), STR("")); // the namespace name for an unprefixed attribute name always has no value (Namespaces in XML 1.0) CHECK_XPATH_STRING(n, STR("namespace-uri(c3/child::node())"), STR("http://def")); CHECK_XPATH_STRING(n, STR("namespace-uri(c6/@bar:attr)"), STR("")); + CHECK_XPATH_STRING(n, STR("namespace-uri(c7/node/@foo:attr)"), STR("http://foo")); // namespace-uri with 2 arguments CHECK_XPATH_FAIL(STR("namespace-uri(c1, c2)")); -- cgit v1.2.3