Fix test_utf8_in_cdata_section() to work in UTF-16 builds

This commit is contained in:
Rhodri James 2017-08-22 17:12:58 +01:00 committed by Sebastian Pipping
parent 08005e3522
commit 7f7e165927

View File

@ -6478,7 +6478,11 @@ END_TEST
START_TEST(test_utf8_in_cdata_section)
{
const char *text = "<doc><![CDATA[one \xc3\xa9 two]]></doc>";
const XML_Char *expected = "one \xc3\xa9 two";
#ifdef XML_UNICODE
const XML_Char *expected = XCS("one \x00e9 two");
#else
const XML_Char *expected = XCS("one \xc3\xa9 two");
#endif
run_character_check(text, expected);
}