0
0
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:
Arseny Kapoulkine 2020-09-10 01:07:48 -07:00
parent 1f84db837b
commit c7090e6c33

View File

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