Codebase list ohcount / 81a9b407-9b9f-4b49-8972-ed3f6d30059f/main test / unit / parsers / test_basic.h
81a9b407-9b9f-4b49-8972-ed3f6d30059f/main

Tree @81a9b407-9b9f-4b49-8972-ed3f6d30059f/main (Download .tar.gz)

test_basic.h @81a9b407-9b9f-4b49-8972-ed3f6d30059f/mainraw · history · blame

char *test_basic_vb_filenames[] = { "frx1.frx", 0 };

void test_basic_sb_comments() {
  test_parser_verify_parse(
    test_parser_sourcefile("structured_basic", " REM comment"),
    "structured_basic", "", "REM comment", 0
  );
}

void test_basic_cb_comments() {
  test_parser_verify_parse(
    test_parser_sourcefile("classic_basic", " 100 REM comment"),
    "classic_basic", "", "100 REM comment", 0
  );
}

void test_basic_comment_entities() {
  test_parser_verify_entity(
    test_parser_sourcefile("structured_basic", " REM comment"),
    "comment", "REM comment"
  );
  test_parser_verify_entity(
    test_parser_sourcefile("classic_basic", " 'comment"),
    "comment", "'comment"
  );
}

void all_basic_tests() {
  test_basic_sb_comments();
  test_basic_cb_comments();
  test_basic_comment_entities();
}