Codebase list ohcount / fresh-snapshots/upstream test / unit / parsers / test_crystal.h
fresh-snapshots/upstream

Tree @fresh-snapshots/upstream (Download .tar.gz)

test_crystal.h @fresh-snapshots/upstreamraw · 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();
}