mirror of
https://github.com/zeux/pugixml.git
synced 2025-01-13 17:37:58 +08:00
Fix tests in wchar mode
This commit is contained in:
parent
1f84db837b
commit
c7090e6c33
@ -396,11 +396,11 @@ TEST(xpath_parse_depth_limit)
|
||||
{
|
||||
const size_t limit = 5000;
|
||||
|
||||
CHECK_XPATH_FAIL((rep(STR("("), limit) + "1" + rep(STR(")"), limit)).c_str());
|
||||
CHECK_XPATH_FAIL(("(id('a'))" + rep(STR("[1]"), limit)).c_str());
|
||||
CHECK_XPATH_FAIL(("/foo" + rep(STR("[1]"), limit)).c_str());
|
||||
CHECK_XPATH_FAIL(("/foo" + rep(STR("/x"), limit)).c_str());
|
||||
CHECK_XPATH_FAIL(("1" + rep(STR("+1"), limit)).c_str());
|
||||
CHECK_XPATH_FAIL((rep(STR("("), limit) + STR("1") + rep(STR(")"), limit)).c_str());
|
||||
CHECK_XPATH_FAIL((STR("(id('a'))") + rep(STR("[1]"), limit)).c_str());
|
||||
CHECK_XPATH_FAIL((STR("/foo") + rep(STR("[1]"), limit)).c_str());
|
||||
CHECK_XPATH_FAIL((STR("/foo") + rep(STR("/x"), limit)).c_str());
|
||||
CHECK_XPATH_FAIL((STR("1") + rep(STR("+1"), limit)).c_str());
|
||||
}
|
||||
|
||||
TEST_XML(xpath_parse_location_path, "<node><child/></node>")
|
||||
|
Loading…
x
Reference in New Issue
Block a user