From b17501c3fb01530aae790228850ac6122227d8a8 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sun, 5 Oct 2014 04:20:52 +0000 Subject: tests: Add XPath sorting tests and a simple test for numeric predicates git-svn-id: https://pugixml.googlecode.com/svn/trunk@1051 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_xpath_paths.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/test_xpath_paths.cpp') diff --git a/tests/test_xpath_paths.cpp b/tests/test_xpath_paths.cpp index 40bd68c..45579a9 100644 --- a/tests/test_xpath_paths.cpp +++ b/tests/test_xpath_paths.cpp @@ -531,4 +531,12 @@ TEST_XML(xpath_paths_descendant_optimize, "") +{ + CHECK_XPATH_NODESET(doc, STR("//para[1]")) % 3; + CHECK_XPATH_NODESET(doc, STR("//para[3 div 3]")) % 3; + CHECK_XPATH_NODESET(doc, STR("//para[6 div 3 - 1]")) % 3; + CHECK_XPATH_NODESET(doc, STR("//para[6 * (1 div 3) - 1]")) % 3; +} + #endif -- cgit v1.2.3