diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-10-28 07:45:33 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-10-28 07:45:33 +0000 |
commit | babd0c2c9b233040082d2761a7194c4a05d69ba9 (patch) | |
tree | 2b1e92f49d696d8202227af8b8f13d974f554a34 | |
parent | 83183769c1125b3aa489205dd880bf94830831bd (diff) |
tests: More function argument parsing tests
git-svn-id: http://pugixml.googlecode.com/svn/trunk@182 99668b35-9821-0410-8761-19e4c4f06640
-rw-r--r-- | tests/test_xpath_functions.cpp | 7 |
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)");
}
|