Codebase list ohcount / fc0f4e2e-584f-4c68-9809-ad96640f54f0/main test / unit / parsers / test_basic.h
fc0f4e2e-584f-4c68-9809-ad96640f54f0/main

Tree @fc0f4e2e-584f-4c68-9809-ad96640f54f0/main (Download .tar.gz)

test_basic.h @fc0f4e2e-584f-4c68-9809-ad96640f54f0/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();
}