Fixes recursion bug in disambiguate_in().
[ohcount] / test / unit / parsers / test_basic.h
1
2 char *test_basic_vb_filenames[] = { "frx1.frx", 0 };
3
4 void test_basic_sb_comments() {
5   test_parser_verify_parse(
6     test_parser_sourcefile("structured_basic", " REM comment"),
7     "structured_basic", "", "REM comment", 0
8   );
9 }
10
11 void test_basic_cb_comments() {
12   test_parser_verify_parse(
13     test_parser_sourcefile("classic_basic", " 100 REM comment"),
14     "classic_basic", "", "100 REM comment", 0
15   );
16 }
17
18 void test_basic_comment_entities() {
19   test_parser_verify_entity(
20     test_parser_sourcefile("structured_basic", " REM comment"),
21     "comment", "REM comment"
22   );
23   test_parser_verify_entity(
24     test_parser_sourcefile("classic_basic", " 'comment"),
25     "comment", "'comment"
26   );
27 }
28
29 void all_basic_tests() {
30   test_basic_sb_comments();
31   test_basic_cb_comments();
32   test_basic_comment_entities();
33 }