Fix test_utf8_in_cdata_section_2() to work in UTF-16 builds

This commit is contained in:
Rhodri James 2017-08-22 17:49:32 +01:00 committed by Sebastian Pipping
parent a507812d34
commit f7434bd86e

View File

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