]> granicus.if.org Git - libexpat/commitdiff
Fix test_nested_groups() to work with UTF-16
authorRhodri James <rhodri@kynesim.co.uk>
Tue, 22 Aug 2017 14:42:52 +0000 (15:42 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Tue, 29 Aug 2017 21:13:14 +0000 (23:13 +0200)
expat/tests/runtests.c

index 156608fe435a9b6e158944e299f7d36852c6a988..fa8f8a1e05d45da25d60e5eb016c635bbe89c183 100644 (file)
@@ -4895,7 +4895,7 @@ START_TEST(test_nested_groups)
     if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text),
                                 XML_TRUE) == XML_STATUS_ERROR)
         xml_failure(parser);
-    CharData_CheckString(&storage, "doce");
+    CharData_CheckXMLChars(&storage, XCS("doce"));
     if (dummy_handler_flags != DUMMY_ELEMENT_DECL_HANDLER_FLAG)
         fail("Element handler not fired");
 }