diff options
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)
|