summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-09-13 18:33:47 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-09-13 18:33:47 +0000
commit7709a32b090e3f967413f4b706e42c8cfbba9f43 (patch)
treee7b158f90e1d8e20fddf9c132062377e8cda0f45 /tests
parente25b73936eec14c90dcef31866f0e1cab15edfd6 (diff)
tests: Added XPath test for large node sets
git-svn-id: http://pugixml.googlecode.com/svn/trunk@721 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests')
-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