diff --git a/test/test_xml.cpp b/test/test_xml.cpp index 23323821b..2ea9be78b 100644 --- a/test/test_xml.cpp +++ b/test/test_xml.cpp @@ -370,6 +370,17 @@ int test_main() TEST_CHECK(out == "Punexpected end of file"); } + { + // test CDATA tag + char xml[] = " and < in it]]>"; + std::string out; + + xml_parse(xml, xml + sizeof(xml) - 1, boost::bind(&parser_callback + , boost::ref(out), _1, _2, _3)); + std::cerr << out << std::endl; + TEST_CHECK(out == "Sverbatim tag that can have > and < in it"); + } + { // test unterminated tags char xml[] = "