summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-11-08 12:34:00 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-11-08 12:34:00 +0000
commitb1f1de5a7a98b66f557e5254f66e6d7cd2756224 (patch)
tree7d607789a4d12d59614048a235d81b450010e876 /tests
parente3293a8baa1294e51bfcd6d3fc0cb7cee756ee7c (diff)
XPath: Minor fix
git-svn-id: http://pugixml.googlecode.com/svn/trunk@218 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests')
-rw-r--r--tests/test_xpath_functions.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_xpath_functions.cpp b/tests/test_xpath_functions.cpp
index e34fac1..a0c59b8 100644
--- a/tests/test_xpath_functions.cpp
+++ b/tests/test_xpath_functions.cpp
@@ -682,6 +682,9 @@ TEST(xpath_function_arguments)
// lack of commas
CHECK_XPATH_FAIL("substring(1 2)");
+
+ // whitespace after function name
+ CHECK_XPATH_BOOLEAN(c, "true ()", true);
}
TEST_XML_FLAGS(xpath_string_value, "<node><c1>pcdata</c1><c2><child/></c2><c3 attr='avalue'/><c4><?target pivalue?></c4><c5><!--comment--></c5><c6><![CDATA[cdata]]></c6></node>", parse_default | parse_pi | parse_comments)