Codebase list ohcount / run/8fccc97f-1091-4606-8a80-1b8fb386766a/main test / unit / parsers / test_ocaml.h
run/8fccc97f-1091-4606-8a80-1b8fb386766a/main

Tree @run/8fccc97f-1091-4606-8a80-1b8fb386766a/main (Download .tar.gz)

test_ocaml.h @run/8fccc97f-1091-4606-8a80-1b8fb386766a/mainraw · history · blame

void test_ocaml_comments() {
  test_parser_verify_parse(
    test_parser_sourcefile("ocaml", " (* comment *)"),
    "ocaml", "", "(* comment *)", 0
  );
}

void test_ocaml_comment_entities() {
  test_parser_verify_entity(
    test_parser_sourcefile("ocaml", " (*comment*)"),
    "comment", "(*comment*)"
  );
}

void all_ocaml_tests() {
  test_ocaml_comments();
  test_ocaml_comment_entities();
}