Codebase list ohcount / 81a9b407-9b9f-4b49-8972-ed3f6d30059f/main test / unit / parsers / test_ruby.h
81a9b407-9b9f-4b49-8972-ed3f6d30059f/main

Tree @81a9b407-9b9f-4b49-8972-ed3f6d30059f/main (Download .tar.gz)

test_ruby.h @81a9b407-9b9f-4b49-8972-ed3f6d30059f/mainraw · history · blame

void test_ruby_comments() {
  test_parser_verify_parse(
    test_parser_sourcefile("ruby", " #comment"),
    "ruby", "", "#comment", 0
  );
}

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

void all_ruby_tests() {
  test_ruby_comments();
  test_ruby_comment_entities();
}