diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-10-23 05:46:44 +0000 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-10-23 05:46:44 +0000 |
commit | bbd75fda4618dcbef272c8e5432153992c392588 (patch) | |
tree | 8180298876db07ff3cfc553822c048fb372fc441 /tests/test_xpath_paths.cpp | |
parent | 4a7762af9d96f8f12e8aa3f0c0899e9673d38d08 (diff) |
tests: Improve test coverage
git-svn-id: https://pugixml.googlecode.com/svn/trunk@1074 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_xpath_paths.cpp')
-rw-r--r-- | tests/test_xpath_paths.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_xpath_paths.cpp b/tests/test_xpath_paths.cpp index da8811d..ee2401a 100644 --- a/tests/test_xpath_paths.cpp +++ b/tests/test_xpath_paths.cpp @@ -615,6 +615,9 @@ TEST_XML(xpath_paths_optimize_step_once, "<node><para1><para2/><para3/><para4><p CHECK_XPATH_BOOLEAN(doc, STR("//@attr5/following::para6"), true); CHECK_XPATH_STRING(doc, STR("name(//@attr5/following::para6)"), STR("para6")); + + CHECK_XPATH_BOOLEAN(doc, STR("//para5/ancestor-or-self::*"), true); + CHECK_XPATH_BOOLEAN(doc, STR("//para5/ancestor::*"), true); } TEST_XML(xpath_paths_null_nodeset_entries, "<node attr='value'/>") |