From 3a9ba8036893c34334278715198d19f42336f388 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Tue, 27 Oct 2009 20:16:30 +0000 Subject: XPath: Fixed concat() crash git-svn-id: http://pugixml.googlecode.com/svn/trunk@178 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_xpath_functions.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'tests') diff --git a/tests/test_xpath_functions.cpp b/tests/test_xpath_functions.cpp index d492da9..9cada22 100644 --- a/tests/test_xpath_functions.cpp +++ b/tests/test_xpath_functions.cpp @@ -47,6 +47,7 @@ TEST_XML(xpath_number_sum, "123789") CHECK_XPATH_NUMBER(n, "sum(.)", 123789); // 123 .. 789 CHECK_XPATH_NUMBER(n, "sum(./descendant-or-self::node())", 125490); // node + 123 + child + 789 = 123789 + 123 + 789 + 789 = 125490 + CHECK_XPATH_NUMBER(n, "sum(.//node())", 1701); // 123 + child + 789 = 123 + 789 + 789 CHECK_XPATH_NUMBER_NAN(doc.last_child(), "sum(.)"); // sum with 2 arguments @@ -217,4 +218,27 @@ TEST_XML(xpath_boolean_lang, "123789100 should be 123789100 (?) -- cgit v1.2.3