summaryrefslogtreecommitdiff
path: root/tests/test_xpath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_xpath.cpp')
-rw-r--r--tests/test_xpath.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_xpath.cpp b/tests/test_xpath.cpp
index fe0a25f..29e7244 100644
--- a/tests/test_xpath.cpp
+++ b/tests/test_xpath.cpp
@@ -267,4 +267,9 @@ TEST(xpath_miscellaneous)
CHECK_XPATH_NODESET(xml_node(), STR("foo/@FOO/@bar"));
}
+TEST(xpath_document_order)
+{
+ CHECK(xml_attribute().document_order() == 0);
+ CHECK(xml_node().document_order() == 0);
+}
#endif