2 void test_boo_comment() {
3 test_parser_verify_parse(
4 test_parser_sourcefile("boo", " #comment"),
5 "boo", "", "#comment", 0
9 void test_boo_block_comment() {
10 test_parser_verify_parse(
11 test_parser_sourcefile("boo", " /*comment*/"),
12 "boo", "", "/*comment*/", 0
16 void test_boo_nested_block_comment() {
17 test_parser_verify_parse(
18 test_parser_sourcefile("boo", " /* comment\n /* nested */\nstill a comment */"),
19 "boo", "", "/* comment\n/* nested */\nstill a comment */", 0
23 void test_boo_doc_comments() {
24 test_parser_verify_parse(
25 test_parser_sourcefile("boo", "\"\"\"\\ndoc comment\n\"\"\""),
26 "boo", "", "\"\"\"\\ndoc comment\n\"\"\"", 0
30 void test_boo_strings() {
31 test_parser_verify_parse(
32 test_parser_sourcefile("boo", "\"abc#not a 'comment\""),
33 "boo", "\"abc#not a 'comment\"", "", 0
37 void test_boo_comment_entities() {
38 test_parser_verify_entity(
39 test_parser_sourcefile("boo", " #comment"),
42 test_parser_verify_entity(
43 test_parser_sourcefile("boo", " //comment"),
44 "comment", "//comment"
48 void all_boo_tests() {
50 test_boo_block_comment();
51 test_boo_nested_block_comment();
52 test_boo_doc_comments();
54 test_boo_comment_entities();