Merge pull request #41 from blackducksw/ubuntu_14
[ohcount] / test / unit / parsers / test_logtalk.h
1
2 void test_logtalk_comments() {
3   test_parser_verify_parse(
4     test_parser_sourcefile("logtalk", " %comment"),
5     "logtalk", "", "%comment", 0
6   );
7 }
8
9 void test_logtalk_empty_comments() {
10   test_parser_verify_parse(
11     test_parser_sourcefile("logtalk", " %\n"),
12     "logtalk", "", "%\n", 0
13   );
14 }
15
16 void test_logtalk_block_comment() {
17   test_parser_verify_parse(
18     test_parser_sourcefile("logtalk", " /*d*/"),
19     "logtalk", "", "/*d*/", 0
20   );
21 }
22
23 void all_logtalk_tests() {
24   test_logtalk_comments();
25   test_logtalk_empty_comments();
26   test_logtalk_block_comment();
27 }