Codebase list ohcount / 85d5c3b4-c1f3-4d55-a24f-4c231b8d4c21/main test / unit / parsers / test_chaiscript.h
85d5c3b4-c1f3-4d55-a24f-4c231b8d4c21/main

Tree @85d5c3b4-c1f3-4d55-a24f-4c231b8d4c21/main (Download .tar.gz)

test_chaiscript.h @85d5c3b4-c1f3-4d55-a24f-4c231b8d4c21/mainraw · history · blame

void test_chaiscript_comments() {
  test_parser_verify_parse(
    test_parser_sourcefile("chaiscript", " //comment"),
    "chaiscript", "", "//comment", 0
  );
}

void test_chaiscript_comment_entities() {
  test_parser_verify_entity(
    test_parser_sourcefile("chaiscript", " //comment"),
    "comment", "//comment"
  );
  test_parser_verify_entity(
    test_parser_sourcefile("chaiscript", " /*comment*/"),
    "comment", "/*comment*/"
  );
}

void all_chaiscript_tests() {
  test_chaiscript_comments();
  test_chaiscript_comment_entities();
}