Merge pull request #41 from blackducksw/ubuntu_14
[ohcount] / test / unit / parsers / test_awk.h
1
2 void test_awk_comments() {
3   test_parser_verify_parse(
4     test_parser_sourcefile("awk", " #comment"),
5     "awk", "", "#comment", 0
6   );
7 }
8
9 void test_awk_double_slash() {
10   test_parser_verify_parse(
11     test_parser_sourcefile("awk", "\"\\\\\"\n#comment"),
12     "awk", "\"\\\\\"\n", "#comment", 0
13   );
14   // awk doesn't recognize backslash escaping of double quote...weird
15 }
16
17 void test_awk_comment_entities() {
18   test_parser_verify_entity(
19     test_parser_sourcefile("awk", " #comment"),
20     "comment", "#comment"
21   );
22 }
23
24 void all_awk_tests() {
25   test_awk_comments();
26   test_awk_double_slash();
27   test_awk_comment_entities();
28 }