diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2020-09-10 01:07:48 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2020-09-10 01:07:48 -0700 |
commit | c7090e6c3329a4d30f69919186276ac237726368 (patch) | |
tree | 84d8287031bb2b3dd7e96de4b44987018b62deba | |
parent | 1f84db837b723cdf9e178e58266a8a62623102d5 (diff) | |
download | pugixml-c7090e6c3329a4d30f69919186276ac237726368.zip pugixml-c7090e6c3329a4d30f69919186276ac237726368.tar.gz pugixml-c7090e6c3329a4d30f69919186276ac237726368.tar.bz2 |
Fix tests in wchar mode
-rw-r--r-- | tests/test_xpath_parse.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_xpath_parse.cpp b/tests/test_xpath_parse.cpp index 9621bd6..89c66a3 100644 --- a/tests/test_xpath_parse.cpp +++ b/tests/test_xpath_parse.cpp @@ -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>") |