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.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_xpath.cpp b/tests/test_xpath.cpp
index d8ebcb6..1c1d413 100644
--- a/tests/test_xpath.cpp
+++ b/tests/test_xpath.cpp
@@ -284,4 +284,14 @@ TEST(xpath_lexer_unknown_lexeme)
CHECK_XPATH_FAIL(STR("(^3))"));
CHECK_XPATH_FAIL(STR("(!3))"));
}
+
+TEST(xpath_large_node_set)
+{
+ xml_document doc;
+ CHECK(doc.load_file("tests/data/large.xml"));
+
+ xpath_node_set ns = doc.select_nodes("//*");
+
+ CHECK(ns.size() == 10001);
+}
#endif