summaryrefslogtreecommitdiff
path: root/tests/test_xpath_functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_xpath_functions.cpp')
-rw-r--r--tests/test_xpath_functions.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_xpath_functions.cpp b/tests/test_xpath_functions.cpp
index 0a2b605..bc432af 100644
--- a/tests/test_xpath_functions.cpp
+++ b/tests/test_xpath_functions.cpp
@@ -521,4 +521,11 @@ TEST(xpath_function_arguments)
CHECK_XPATH_FAIL("substring(,)");
CHECK_XPATH_FAIL("substring('a',)");
CHECK_XPATH_FAIL("substring(,'a')");
+
+ // extra commas
+ CHECK_XPATH_FAIL("round(,1)");
+ CHECK_XPATH_FAIL("round(1,)");
+
+ // lack of commas
+ CHECK_XPATH_FAIL("substring(1 2)");
}