Codebase list ohcount / fc0f4e2e-584f-4c68-9809-ad96640f54f0/main test / unit / parsers / test_groovy.h
fc0f4e2e-584f-4c68-9809-ad96640f54f0/main

Tree @fc0f4e2e-584f-4c68-9809-ad96640f54f0/main (Download .tar.gz)

test_groovy.h @fc0f4e2e-584f-4c68-9809-ad96640f54f0/mainraw · history · blame

void test_groovy_comments() {
  test_parser_verify_parse(
    test_parser_sourcefile("groovy", " //comment"),
    "groovy", "", "//comment", 0
  );
}

void test_groovy_comment_entities() {
  test_parser_verify_entity(
    test_parser_sourcefile("groovy", " //comment"),
    "comment", "//comment"
  );
  test_parser_verify_entity(
    test_parser_sourcefile("groovy", " /*comment*/"),
    "comment", "/*comment*/"
  );
}

void all_groovy_tests() {
  test_groovy_comments();
  test_groovy_comment_entities();
}