2 void test_python_comment() {
3 test_parser_verify_parse(
4 test_parser_sourcefile("python", " #comment"),
5 "python", "", "#comment", 0
9 void test_python_doc_string() {
10 test_parser_verify_parse(
11 test_parser_sourcefile("python", " '''\n doc comment\n '''"),
12 "python", "", "'''\ndoc comment\n'''", 0
16 void test_python_strings() {
17 test_parser_verify_parse(
18 test_parser_sourcefile("python", "\"abc#not a 'comment\""),
19 "python", "\"abc#not a 'comment\"", "", 0
23 void test_python_comment_entities() {
24 test_parser_verify_entity(
25 test_parser_sourcefile("python", " #comment"),
28 test_parser_verify_entity(
29 test_parser_sourcefile("python", " \"\"\"comment\"\"\""),
30 "comment", "\"\"\"comment\"\"\""
34 void all_python_tests() {
35 test_python_comment();
36 test_python_doc_string();
37 test_python_strings();
38 test_python_comment_entities();