summaryrefslogtreecommitdiff
path: root/tests/test_xpath_functions.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-28 07:45:33 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-28 07:45:33 +0000
commitbabd0c2c9b233040082d2761a7194c4a05d69ba9 (patch)
tree2b1e92f49d696d8202227af8b8f13d974f554a34 /tests/test_xpath_functions.cpp
parent83183769c1125b3aa489205dd880bf94830831bd (diff)
tests: More function argument parsing tests
git-svn-id: http://pugixml.googlecode.com/svn/trunk@182 99668b35-9821-0410-8761-19e4c4f06640
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)");
}