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:
parent
e25b73936e
commit
7709a32b09
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user