Merge pull request #41 from blackducksw/ubuntu_14
[ohcount] / test / unit / parsers / test_dcl.h
1
2 void test_dcl_comments() {
3   test_parser_verify_parse(
4     test_parser_sourcefile("dcl", "$!comment"),
5     "dcl", "", "$!comment", 0
6   );
7 }
8
9 void test_dcl_code() {
10   test_parser_verify_parse(
11     test_parser_sourcefile("dcl", "$code"),
12     "dcl", "$code", "", 0
13   );
14 }
15
16 void test_dcl_blank() {
17   test_parser_verify_parse(
18     test_parser_sourcefile("dcl", "\n"),
19     "dcl", "", "", 1
20   );
21 }
22
23 void test_dcl_input_line() {
24   test_parser_verify_parse(
25     test_parser_sourcefile("dcl", "input"),
26     "dcl", "input", "", 0
27   );
28 }
29
30 void test_dcl_comment_entities() {
31   test_parser_verify_entity(
32     test_parser_sourcefile("dcl", " !comment"),
33     "comment", "!comment"
34   );
35 }
36
37 void all_dcl_tests() {
38   test_dcl_comments();
39   test_dcl_code();
40   test_dcl_blank();
41   test_dcl_input_line();
42   test_dcl_comment_entities();
43 }