diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-11-08 15:17:46 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-11-08 15:17:46 +0000 |
commit | 0cac815b6398d60171e992a4333ab16ad542aebc (patch) | |
tree | 303c706d29e7422b10df16ea6b97dc796b9cc022 /tests/test_xpath_paths.cpp | |
parent | c5d97527366f9c39e84e3a4089ff74311b14c489 (diff) |
tests: More coverage tests
git-svn-id: http://pugixml.googlecode.com/svn/trunk@225 99668b35-9821-0410-8761-19e4c4f06640
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
|