tests: More function argument parsing tests
git-svn-id: http://pugixml.googlecode.com/svn/trunk@182 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
83183769c1
commit
babd0c2c9b
@ -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)");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user