Codebase list ohcount / d62f219c-a984-415f-b69c-f521b00b8f15/main test / unit / parsers / test_xml.h
d62f219c-a984-415f-b69c-f521b00b8f15/main

Tree @d62f219c-a984-415f-b69c-f521b00b8f15/main (Download .tar.gz)

test_xml.h @d62f219c-a984-415f-b69c-f521b00b8f15/mainraw · history · blame

void test_xml_comments() {
  test_parser_verify_parse(
    test_parser_sourcefile("xml", " <!--comment-->"),
    "xml", "", "<!--comment-->", 0
  );
}

void test_xml_comment_entities() {
  test_parser_verify_entity(
    test_parser_sourcefile("xml", " <!--comment-->"),
    "comment", "<!--comment-->"
  );
}

void all_xml_tests() {
  test_xml_comments();
  test_xml_comment_entities();
}