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

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

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

void test_crystal_comments() {
  test_parser_verify_parse(
    test_parser_sourcefile("crystal", " #comment"),
    "crystal", "", "#comment", 0
  );
}

void test_crystal_comment_entities() {
  test_parser_verify_entity(
    test_parser_sourcefile("crystal", " #comment"),
    "comment", "#comment"
  );
  test_parser_verify_entity(
    test_parser_sourcefile("crystal", "=begin\ncomment\n=end"),
    "comment", "=begin\ncomment\n=end"
  );
}

void all_crystal_tests() {
  test_crystal_comments();
  test_crystal_comment_entities();
}