diff options
Diffstat (limited to 'tests/test_xpath_paths.cpp')
-rw-r--r-- | tests/test_xpath_paths.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_xpath_paths.cpp b/tests/test_xpath_paths.cpp index f2b6402..3d45e9c 100644 --- a/tests/test_xpath_paths.cpp +++ b/tests/test_xpath_paths.cpp @@ -463,4 +463,11 @@ TEST_XML(xpath_paths_descendant_double_slash_w3c, "<node><para><para/><para/><pa CHECK_XPATH_NODESET(doc, "/descendant::para[1]") % 3;
}
+TEST_XML(xpath_paths_needs_sorting, "<node><child/><child/><child><subchild/><subchild/></child></node>")
+{
+ doc.precompute_document_order();
+
+ CHECK_XPATH_NODESET(doc, "(node/child/subchild)[2]") % 7;
+}
+
#endif
|