From fd6b419b2aa5d7f8d7e3941ee2a1d72ae5f3257d Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sun, 29 Aug 2010 15:31:03 +0000 Subject: Removed deprecated wildcard functions, removed deprecated all_elements_by_name git-svn-id: http://pugixml.googlecode.com/svn/trunk@669 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests/test.cpp') diff --git a/tests/test.cpp b/tests/test.cpp index 9435f1e..43c6b22 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -6,6 +6,8 @@ #include #include +#include +#include #include #include @@ -41,7 +43,12 @@ static void build_document_order(std::vector& result, pugi::xm bool test_string_equal(const pugi::char_t* lhs, const pugi::char_t* rhs) { - return (!lhs || !rhs) ? lhs == rhs : pugi::impl::strequal(lhs, rhs); + return (!lhs || !rhs) ? lhs == rhs : + #ifdef PUGIXML_WCHAR_MODE + wcscmp(lhs, rhs) == 0; + #else + strcmp(lhs, rhs) == 0; + #endif } bool test_node(const pugi::xml_node& node, const pugi::char_t* contents, const pugi::char_t* indent, unsigned int flags) -- cgit v1.2.3