Codebase list ohcount / 81a9b407-9b9f-4b49-8972-ed3f6d30059f/main test / unit / parsers / test_clearsilvertemplate.h
81a9b407-9b9f-4b49-8972-ed3f6d30059f/main

Tree @81a9b407-9b9f-4b49-8972-ed3f6d30059f/main (Download .tar.gz)

test_clearsilvertemplate.h @81a9b407-9b9f-4b49-8972-ed3f6d30059f/mainraw · history · blame

void test_clearsilver_template_comments() {
  test_parser_verify_parse2(
    test_parser_sourcefile("clearsilver_template", " <?cs\n #comment\n?>"),
    "html", "<?cs\n?>", "", 0,
    "clearsilver", "", "#comment\n", 0
  );
}

void test_clearsilver_template_comment_entities() {
  test_parser_verify_entity(
    test_parser_sourcefile("clearsilver_template", " <!--comment-->"),
    "comment", "<!--comment-->"
  );
  test_parser_verify_entity(
    test_parser_sourcefile("clearsilver_template", " <?cs\n#comment\n?>"),
    "comment", "#comment"
  );
}

void all_clearsilver_template_tests() {
  test_clearsilver_template_comments();
  test_clearsilver_template_comment_entities();
}