2 void test_rebol_comments() {
3 test_parser_verify_parse(
4 test_parser_sourcefile("rebol", "REBOL []\n;comment"),
5 "rebol", "REBOL []\n", ";comment", 0
7 test_parser_verify_parse(
8 test_parser_sourcefile("rebol", "{}"),
11 test_parser_verify_parse(
12 test_parser_sourcefile("rebol", "{{}}"),
13 "rebol", "{{}}", "", 0
15 test_parser_verify_parse(
16 test_parser_sourcefile("rebol", "{{\n}}"),
17 "rebol", "{{\n}}", "", 0
19 test_parser_verify_parse(
20 test_parser_sourcefile("rebol", "{\n;inside string\n}"),
21 "rebol", "{\n;inside string\n}", "", 0
23 test_parser_verify_parse(
24 test_parser_sourcefile("rebol", "{}\n;comment"),
25 "rebol", "{}\n", ";comment", 0
29 void test_rebol_comment_entities() {
30 test_parser_verify_entity(
31 test_parser_sourcefile("rebol", " ;comment"),
34 test_parser_verify_entity(
35 test_parser_sourcefile("rebol", " \";no comment\""),
36 "string", "\";no comment\""
40 void all_rebol_tests() {
41 test_rebol_comments();
42 test_rebol_comment_entities();