Merge pull request #41 from blackducksw/ubuntu_14
[ohcount] / test / unit / parsers / test_glsl.h
1
2 void test_glsl_comments() {
3   test_parser_verify_parse(
4     test_parser_sourcefile("glsl", " //comment"),
5     "glsl", "", "//comment", 0
6   );
7 }
8
9 void test_glsl_empty_comments() {
10   test_parser_verify_parse(
11     test_parser_sourcefile("glsl", " //\n"),
12     "glsl", "", "//\n", 0
13   );
14 }
15
16 void test_glsl_block_comment() {
17   test_parser_verify_parse(
18     test_parser_sourcefile("glsl", "/*glsl*/"),
19     "glsl", "", "/*glsl*/", 0
20   );
21 }
22
23 void test_glsl_comment_entities() {
24   test_parser_verify_entity(
25     test_parser_sourcefile("glsl", " //comment"),
26     "comment", "//comment"
27   );
28   test_parser_verify_entity(
29     test_parser_sourcefile("glsl", " /*comment*/"),
30     "comment", "/*comment*/"
31   );
32 }
33
34 void all_glsl_tests() {
35   test_glsl_comments();
36   test_glsl_empty_comments();
37   test_glsl_block_comment();
38   test_glsl_comment_entities();
39 }