diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-11-08 15:30:49 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-11-08 15:30:49 +0000 |
commit | eefd73bc4e51184021cc84bd9adf3f600438d958 (patch) | |
tree | 6df208fc81af42390479b08beb3f96e1bcf290e1 /tests/test_xpath_functions.cpp | |
parent | 0cac815b6398d60171e992a4333ab16ad542aebc (diff) |
tests: More XPath coverage
git-svn-id: http://pugixml.googlecode.com/svn/trunk@226 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_xpath_functions.cpp')
-rw-r--r-- | tests/test_xpath_functions.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_xpath_functions.cpp b/tests/test_xpath_functions.cpp index 9cf8164..1ab4d71 100644 --- a/tests/test_xpath_functions.cpp +++ b/tests/test_xpath_functions.cpp @@ -688,6 +688,9 @@ TEST(xpath_function_arguments) // whitespace after function name
CHECK_XPATH_BOOLEAN(c, "true ()", true);
+
+ // too many arguments
+ CHECK_XPATH_FAIL("round(1, 2, 3, 4, 5, 6)");
}
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)
|