Codebase list ohcount / 78cfc95f-7386-42a8-9c13-3be662a077b3/main test / unit / parsers / test_javascript.h
78cfc95f-7386-42a8-9c13-3be662a077b3/main

Tree @78cfc95f-7386-42a8-9c13-3be662a077b3/main (Download .tar.gz)

test_javascript.h @78cfc95f-7386-42a8-9c13-3be662a077b3/mainraw · history · blame

void test_javascript_comments() {
  test_parser_verify_parse(
    test_parser_sourcefile("javascript", " //comment"),
    "javascript", "", "//comment", 0
  );
}

void test_javascript_comment_entities() {
  test_parser_verify_entity(
    test_parser_sourcefile("javascript", " //comment"),
    "comment", "//comment"
  );
  test_parser_verify_entity(
    test_parser_sourcefile("javascript", " /*comment*/"),
    "comment", "/*comment*/"
  );
}

void all_javascript_tests() {
  test_javascript_comments();
  test_javascript_comment_entities();
}