From babd0c2c9b233040082d2761a7194c4a05d69ba9 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Wed, 28 Oct 2009 07:45:33 +0000 Subject: tests: More function argument parsing tests git-svn-id: http://pugixml.googlecode.com/svn/trunk@182 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_xpath_functions.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/test_xpath_functions.cpp') 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)"); } -- cgit v1.2.3