tests: Added XPath test for large node sets

git-svn-id: http://pugixml.googlecode.com/svn/trunk@721 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
arseny.kapoulkine 2010-09-13 18:33:47 +00:00
parent e25b73936e
commit 7709a32b09

View File

@ -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