Package list ohcount / 4fa67836-5fea-4473-87e4-bd80a2d5b1ae/main test / unit / parsers / test_logtalk.h
4fa67836-5fea-4473-87e4-bd80a2d5b1ae/main

Tree @4fa67836-5fea-4473-87e4-bd80a2d5b1ae/main (Download .tar.gz)

test_logtalk.h @4fa67836-5fea-4473-87e4-bd80a2d5b1ae/mainraw · history · blame

void test_logtalk_comments() {
  test_parser_verify_parse(
    test_parser_sourcefile("logtalk", " %comment"),
    "logtalk", "", "%comment", 0
  );
}

void test_logtalk_empty_comments() {
  test_parser_verify_parse(
    test_parser_sourcefile("logtalk", " %\n"),
    "logtalk", "", "%\n", 0
  );
}

void test_logtalk_block_comment() {
  test_parser_verify_parse(
    test_parser_sourcefile("logtalk", " /*d*/"),
    "logtalk", "", "/*d*/", 0
  );
}

void all_logtalk_tests() {
  test_logtalk_comments();
  test_logtalk_empty_comments();
  test_logtalk_block_comment();
}